Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+4
-4
app/helpers/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