fixed layout as default
This commit is contained in:
parent
03b9369007
commit
97cf5659aa
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def fixed_mode?
|
||||
@view_mode == :fixed
|
||||
@view_mode == :fluid
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue