Commit 97cf5659 authored by gitlabhq's avatar gitlabhq

fixed layout as default

parent 03b93690
......@@ -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)
......
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