From f8cedf00a805584e3934887c0d76a5ba8b478780 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 11 Sep 2012 03:44:52 +0000 Subject: [PATCH] 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 --- lib/redmine/helpers/gantt.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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] -- 2.39.5