remove fluiod layout
This commit is contained in:
parent
c092f3972a
commit
49b2fb24bc
6 changed files with 7 additions and 26 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue