summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 04:24:53 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 04:24:53 +0000
commitb63b388d8a6b8eb51883d7dfac281defa97a2c18 (patch)
tree4e5e5ad5e74cd6c56bb99920d877c5b351bfda62 /app/controllers
parent32dd182e25d369383e1e45fca8108a3717a159de (diff)
downloadredmine-b63b388d8a6b8eb51883d7dfac281defa97a2c18.tar.gz
redmine-b63b388d8a6b8eb51883d7dfac281defa97a2c18.zip
code layout clean up IssuesController#show
git-svn-id: http://svn.redmine.org/redmine/trunk@19149 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index cd953182e..73637095b 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -89,8 +89,11 @@ class IssuesController < ApplicationController
def show
@journals = @issue.visible_journals_with_index
@has_changesets = @issue.changesets.visible.preload(:repository, :user).exists?
- @relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
-
+ @relations =
+ @issue.relations.
+ select {|r|
+ r.other_issue(@issue) && r.other_issue(@issue).visible?
+ }
@journals.reverse! if User.current.wants_comments_in_reverse_order?
if User.current.allowed_to?(:view_time_entries, @project)
@@ -112,9 +115,13 @@ class IssuesController < ApplicationController
@changesets = @issue.changesets.visible.preload(:repository, :user).to_a
@changesets.reverse! if User.current.wants_comments_in_reverse_order?
}
- format.atom { render :template => 'journals/index', :layout => false, :content_type => 'application/atom+xml' }
+ format.atom {
+ render :template => 'journals/index', :layout => false,
+ :content_type => 'application/atom+xml'
+ }
format.pdf {
- send_file_headers! :type => 'application/pdf', :filename => "#{@project.identifier}-#{@issue.id}.pdf"
+ send_file_headers!(:type => 'application/pdf',
+ :filename => "#{@project.identifier}-#{@issue.id}.pdf")
}
end
end