diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 15:17:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-21 15:17:52 +0000 |
commit | e68507265e217a757506cbfd3882a3f70441f1ff (patch) | |
tree | e65f8e68579f1bfb19eea9e07497ff7a19843766 /lib/redmine/helpers | |
parent | 2f7084f7a27671c5f0b2db55fe3bdafe507f4f12 (diff) | |
download | redmine-e68507265e217a757506cbfd3882a3f70441f1ff.tar.gz redmine-e68507265e217a757506cbfd3882a3f70441f1ff.zip |
Adds full subject as gantt subject title (#7280).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index d4492ec68..bb99b9fc8 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -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 |