remove fluiod layout

This commit is contained in:
gitlabhq 2011-11-11 11:35:51 -05:00
parent c092f3972a
commit 49b2fb24bc
6 changed files with 7 additions and 26 deletions

View file

@ -1,9 +1,6 @@
class ApplicationController < ActionController::Base
before_filter :authenticate_user!
before_filter :view_style
protect_from_forgery
helper_method :abilities, :can?
rescue_from Gitosis::AccessDenied do |exception|
@ -76,20 +73,6 @@ class ApplicationController < ActionController::Base
redirect_to @project unless @project.repo_exists?
end
def view_style
if params[:view_style] == "collapsed"
cookies[:view_style] = "collapsed"
elsif params[:view_style] == "fluid"
cookies[:view_style] = "fluid"
end
@view_mode = if cookies[:view_style] == "fluid"
:fluid
else
:collapsed
end
end
def respond_with_notes
if params[:last_id] && params[:first_id]
@notes = @notes.where("id >= ?", params[:first_id])