BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
97cf5659
Commit
97cf5659
authored
Nov 11, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed layout as default
parent
03b93690
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
application_controller.rb
app/controllers/application_controller.rb
+4
-4
application_helper.rb
app/helpers/application_helper.rb
+2
-2
No files found.
app/controllers/application_controller.rb
View file @
97cf5659
...
...
@@ -80,13 +80,13 @@ class ApplicationController < ActionController::Base
if
params
[
:view_style
]
==
"collapsed"
cookies
[
:view_style
]
=
"collapsed"
elsif
params
[
:view_style
]
==
"fluid"
cookies
[
:view_style
]
=
""
cookies
[
:view_style
]
=
"
fluid
"
end
@view_mode
=
if
cookies
[
:view_style
]
==
"collapsed"
:fixed
else
@view_mode
=
if
cookies
[
:view_style
]
==
"fluid"
:fluid
else
:collapsed
end
end
...
...
app/helpers/application_helper.rb
View file @
97cf5659
...
...
@@ -7,7 +7,7 @@ module ApplicationHelper
end
def
fixed_mode?
@view_mode
==
:f
ixe
d
@view_mode
==
:f
lui
d
end
def
body_class
(
default_class
=
nil
)
...
...
@@ -15,7 +15,7 @@ module ApplicationHelper
default_class
:
content_for
(
:body_class
)
[
main
,
cookies
[
:view_style
]
].
join
(
" "
)
[
main
,
@view_mode
].
join
(
" "
)
end
def
commit_name
(
project
,
commit
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment