From: Toshi MARUYAMA Date: Tue, 11 Sep 2012 03:44:52 +0000 (+0000) Subject: gantt: use content_tag instead of html tag at the label on the right X-Git-Tag: 2.1.0~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8cedf00a805584e3934887c0d76a5ba8b478780;p=redmine.git 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 --- 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 << "
".html_safe - output << options[:label] - output << "
".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]