From 0cd9149e7a6f2ece3ffeae7436ea77a7d53a85e8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 11 Sep 2012 02:16:18 +0000 Subject: [PATCH] gantt: use content_tag instead of html tag at the markers git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10358 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 94f5b244b..510da8735 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -736,10 +736,22 @@ module Redmine # Renders the markers if options[:markers] if coords[:start] - output << "
 
".html_safe + style = "" + style << "top:#{params[:top]}px;" + style << "left:#{coords[:start]}px;" + style << "width:15px;" + output << view.content_tag(:div, ' '.html_safe, + :style => style, + :class => "#{options[:css]} marker starting") end if coords[:end] - output << "
 
".html_safe + style = "" + style << "top:#{params[:top]}px;" + style << "left:#{coords[:end] + params[:zoom]}px;" + style << "width:15px;" + output << view.content_tag(:div, ' '.html_safe, + :style => style, + :class => "#{options[:css]} marker ending") end end # Renders the label on the right