]> source.dussan.org Git - redmine.git/commitdiff
Add Issue Status to the tooltip. #6169
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 03:43:33 +0000 (03:43 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 03:43:33 +0000 (03:43 +0000)
Contributed by Nick Peelman

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3952 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 60798fedfa510f13c5fffa771a9a073fdfb4738b..6178229868396f939451b14e86ff82c2c730be85 100644 (file)
@@ -30,12 +30,14 @@ module IssuesHelper
   end
   
   def render_issue_tooltip(issue)
+    @cached_label_status ||= l(:field_status)
     @cached_label_start_date ||= l(:field_start_date)
     @cached_label_due_date ||= l(:field_due_date)
     @cached_label_assigned_to ||= l(:field_assigned_to)
     @cached_label_priority ||= l(:field_priority)
     
     link_to_issue(issue) + "<br /><br />" +
+      "<strong>#{@cached_label_status}</strong>: #{issue.status.name}<br />" +
       "<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />" +
       "<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />" +
       "<strong>#{@cached_label_assigned_to}</strong>: #{issue.assigned_to}<br />" +