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
This commit is contained in:
Toshi MARUYAMA 2012-09-11 03:44:52 +00:00
parent 2461d12388
commit f8cedf00a8
1 changed files with 7 additions and 3 deletions

View File

@ -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]