summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 02:16:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 02:16:18 +0000
commit0cd9149e7a6f2ece3ffeae7436ea77a7d53a85e8 (patch)
treee5965bbe5e55cbd1f94b86d7db46767befb76e05 /lib/redmine/helpers
parent69d06607607816bd9de2ff5c4aa56c45fd8923af (diff)
downloadredmine-0cd9149e7a6f2ece3ffeae7436ea77a7d53a85e8.tar.gz
redmine-0cd9149e7a6f2ece3ffeae7436ea77a7d53a85e8.zip
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
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r--lib/redmine/helpers/gantt.rb16
1 files 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 << "<div style='top:#{ params[:top] }px;left:#{ coords[:start] }px;width:15px;' class='#{options[:css]} marker starting'>&nbsp;</div>".html_safe
+ style = ""
+ style << "top:#{params[:top]}px;"
+ style << "left:#{coords[:start]}px;"
+ style << "width:15px;"
+ output << view.content_tag(:div, '&nbsp;'.html_safe,
+ :style => style,
+ :class => "#{options[:css]} marker starting")
end
if coords[:end]
- output << "<div style='top:#{ params[:top] }px;left:#{ coords[:end] + params[:zoom] }px;width:15px;' class='#{options[:css]} marker ending'>&nbsp;</div>".html_safe
+ style = ""
+ style << "top:#{params[:top]}px;"
+ style << "left:#{coords[:end] + params[:zoom]}px;"
+ style << "width:15px;"
+ output << view.content_tag(:div, '&nbsp;'.html_safe,
+ :style => style,
+ :class => "#{options[:css]} marker ending")
end
end
# Renders the label on the right