diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 03:44:52 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 03:44:52 +0000 |
commit | f8cedf00a805584e3934887c0d76a5ba8b478780 (patch) | |
tree | a7cefc917b27cbc6cb1b9085ee0d802857f43f51 /lib | |
parent | 2461d123884716d0685a13011092b37d925c9dad (diff) | |
download | redmine-f8cedf00a805584e3934887c0d76a5ba8b478780.tar.gz redmine-f8cedf00a805584e3934887c0d76a5ba8b478780.zip |
gantt: use content_tag instead of html tag at the label on the right
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10361 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 763342345..46f6ec6a0 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -759,9 +759,13 @@ module Redmine end # Renders the label on the right if options[:label] - output << "<div style='top:#{ params[:top] }px;left:#{ (coords[:bar_end] || 0) + 8 }px;' class='#{options[:css]} label'>".html_safe - output << options[:label] - output << "</div>".html_safe + style = "" + style << "top:#{params[:top]}px;" + style << "left:#{(coords[:bar_end] || 0) + 8}px;" + style << "width:15px;" + output << view.content_tag(:div, options[:label], + :style => style, + :class => "#{options[:css]} label") end # Renders the tooltip if options[:issue] && coords[:bar_start] && coords[:bar_end] |