remove trailing white-spaces from app/controllers/context_menus_controller.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6797 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e028e54258
commit
4c803780d2
|
@ -1,10 +1,10 @@
|
||||||
class ContextMenusController < ApplicationController
|
class ContextMenusController < ApplicationController
|
||||||
helper :watchers
|
helper :watchers
|
||||||
helper :issues
|
helper :issues
|
||||||
|
|
||||||
def issues
|
def issues
|
||||||
@issues = Issue.visible.all(:conditions => {:id => params[:ids]}, :include => :project)
|
@issues = Issue.visible.all(:conditions => {:id => params[:ids]}, :include => :project)
|
||||||
|
|
||||||
if (@issues.size == 1)
|
if (@issues.size == 1)
|
||||||
@issue = @issues.first
|
@issue = @issues.first
|
||||||
@allowed_statuses = @issue.new_statuses_allowed_to(User.current)
|
@allowed_statuses = @issue.new_statuses_allowed_to(User.current)
|
||||||
|
@ -37,11 +37,11 @@ class ContextMenusController < ApplicationController
|
||||||
@assignables = @projects.map(&:assignable_users).inject{|memo,a| memo & a}
|
@assignables = @projects.map(&:assignable_users).inject{|memo,a| memo & a}
|
||||||
@trackers = @projects.map(&:trackers).inject{|memo,t| memo & t}
|
@trackers = @projects.map(&:trackers).inject{|memo,t| memo & t}
|
||||||
end
|
end
|
||||||
|
|
||||||
@priorities = IssuePriority.active.reverse
|
@priorities = IssuePriority.active.reverse
|
||||||
@statuses = IssueStatus.find(:all, :order => 'position')
|
@statuses = IssueStatus.find(:all, :order => 'position')
|
||||||
@back = back_url
|
@back = back_url
|
||||||
|
|
||||||
render :layout => false
|
render :layout => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -57,5 +57,5 @@ class ContextMenusController < ApplicationController
|
||||||
}
|
}
|
||||||
@back = back_url
|
@back = back_url
|
||||||
render :layout => false
|
render :layout => false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue