Commit 97cf5659 authored by gitlabhq's avatar gitlabhq

fixed layout as default

parent 03b93690
...@@ -80,13 +80,13 @@ class ApplicationController < ActionController::Base ...@@ -80,13 +80,13 @@ class ApplicationController < ActionController::Base
if params[:view_style] == "collapsed" if params[:view_style] == "collapsed"
cookies[:view_style] = "collapsed" cookies[:view_style] = "collapsed"
elsif params[:view_style] == "fluid" elsif params[:view_style] == "fluid"
cookies[:view_style] = "" cookies[:view_style] = "fluid"
end end
@view_mode = if cookies[:view_style] == "collapsed" @view_mode = if cookies[:view_style] == "fluid"
:fixed
else
:fluid :fluid
else
:collapsed
end end
end end
......
...@@ -7,7 +7,7 @@ module ApplicationHelper ...@@ -7,7 +7,7 @@ module ApplicationHelper
end end
def fixed_mode? def fixed_mode?
@view_mode == :fixed @view_mode == :fluid
end end
def body_class(default_class = nil) def body_class(default_class = nil)
...@@ -15,7 +15,7 @@ module ApplicationHelper ...@@ -15,7 +15,7 @@ module ApplicationHelper
default_class : default_class :
content_for(:body_class) content_for(:body_class)
[main, cookies[:view_style]].join(" ") [main, @view_mode].join(" ")
end end
def commit_name(project, commit) def commit_name(project, commit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment