]> source.dussan.org Git - redmine.git/commitdiff
Adds full subject as gantt subject title (#7280).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Feb 2011 15:17:52 +0000 (15:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Feb 2011 15:17:52 +0000 (15:17 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4914 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index d4492ec6823f7bd4e62e651c66b684d20982d1b2..bb99b9fc86cc5bc4867577994549595f9a791d3e 100644 (file)
@@ -357,7 +357,7 @@ module Redmine
           end
           subject << view.link_to_issue(issue)
           subject << '</span>'
-          html_subject(options, subject, :css => "issue-subject") + "\n"
+          html_subject(options, subject, :css => "issue-subject", :title => issue.subject) + "\n"
         when :image
           image_subject(options, issue.subject)
         when :pdf
@@ -712,9 +712,7 @@ module Redmine
         style = "position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis;"
         style << "width:#{params[:subject_width] - params[:indent]}px;" if params[:subject_width]
         
-        output = "<div class='#{options[:css]}' style='#{style}'>"
-        output << subject
-        output << "</div>"
+        output = view.content_tag 'div', subject, :class => options[:css], :style => style, :title => options[:title]
         @subjects << output
         output
       end