GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit ed4f1864 authored by tmaruyama's avatar tmaruyama

gantt: use content_tag instead of html tag at the tooltip

git-svn-id: https://svn.redmine.org/redmine/trunk@10362 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6cb4751a
......@@ -769,10 +769,18 @@ module Redmine
end
# Renders the tooltip
if options[:issue] && coords[:bar_start] && coords[:bar_end]
output << "<div class='tooltip' style='position: absolute;top:#{ params[:top] }px;left:#{ coords[:bar_start] }px;width:#{ coords[:bar_end] - coords[:bar_start] }px;height:12px;'>".html_safe
output << '<span class="tip">'.html_safe
output << view.render_issue_tooltip(options[:issue]).html_safe
output << "</span></div>".html_safe
s = view.content_tag(:span,
view.render_issue_tooltip(options[:issue]).html_safe,
:class => "tip")
style = ""
style << "position: absolute;"
style << "top:#{params[:top]}px;"
style << "left:#{coords[:bar_start]}px;"
style << "width:#{coords[:bar_end] - coords[:bar_start]}px;"
style << "height:12px;"
output << view.content_tag(:div, s.html_safe,
:style => style,
:class => "tooltip")
end
@lines << output
output
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment