]> source.dussan.org Git - redmine.git/commitdiff
Add closed_on to the tooltip if the issue is closed (#31697).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Aug 2019 08:10:37 +0000 (08:10 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Aug 2019 08:10:37 +0000 (08:10 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18337 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index c6b8cb6dd1cb93b5c6bf0755957ad8669c82edd6..addd66dc98fca8209d3fc66daa958136035f45df 100644 (file)
@@ -62,7 +62,7 @@ module IssuesHelper
 
     link_to_issue(issue) + "<br /><br />".html_safe +
       "<strong>#{@cached_label_project}</strong>: #{link_to_project(issue.project)}<br />".html_safe +
-      "<strong>#{@cached_label_status}</strong>: #{h(issue.status.name)}<br />".html_safe +
+      "<strong>#{@cached_label_status}</strong>: #{h(issue.status.name) + (" (#{format_date(issue.closed_on)})" if issue.closed?)}<br />".html_safe +
       "<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />".html_safe +
       "<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />".html_safe +
       "<strong>#{@cached_label_assigned_to}</strong>: #{avatar(issue.assigned_to, :size => "13", :title => l(:field_assigned_to)) if issue.assigned_to} #{h(issue.assigned_to)}<br />".html_safe +