@@ -769,10 +769,18 module Redmine | |||||
769 | end |
|
769 | end | |
770 | # Renders the tooltip |
|
770 | # Renders the tooltip | |
771 | if options[:issue] && coords[:bar_start] && coords[:bar_end] |
|
771 | if options[:issue] && coords[:bar_start] && coords[:bar_end] | |
772 | 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 |
|
772 | s = view.content_tag(:span, | |
773 | output << '<span class="tip">'.html_safe |
|
773 | view.render_issue_tooltip(options[:issue]).html_safe, | |
774 | output << view.render_issue_tooltip(options[:issue]).html_safe |
|
774 | :class => "tip") | |
775 | output << "</span></div>".html_safe |
|
775 | style = "" | |
|
776 | style << "position: absolute;" | |||
|
777 | style << "top:#{params[:top]}px;" | |||
|
778 | style << "left:#{coords[:bar_start]}px;" | |||
|
779 | style << "width:#{coords[:bar_end] - coords[:bar_start]}px;" | |||
|
780 | style << "height:12px;" | |||
|
781 | output << view.content_tag(:div, s.html_safe, | |||
|
782 | :style => style, | |||
|
783 | :class => "tooltip") | |||
776 | end |
|
784 | end | |
777 | @lines << output |
|
785 | @lines << output | |
778 | output |
|
786 | output |
General Comments 0
You need to be logged in to leave comments.
Login now