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:
parent
2461d12388
commit
f8cedf00a8
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue