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
This commit is contained in:
parent
69d0660760
commit
0cd9149e7a
|
@ -736,10 +736,22 @@ module Redmine
|
||||||
# Renders the markers
|
# Renders the markers
|
||||||
if options[:markers]
|
if options[:markers]
|
||||||
if coords[:start]
|
if coords[:start]
|
||||||
output << "<div style='top:#{ params[:top] }px;left:#{ coords[:start] }px;width:15px;' class='#{options[:css]} marker starting'> </div>".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
|
end
|
||||||
if coords[:end]
|
if coords[:end]
|
||||||
output << "<div style='top:#{ params[:top] }px;left:#{ coords[:end] + params[:zoom] }px;width:15px;' class='#{options[:css]} marker ending'> </div>".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
|
||||||
end
|
end
|
||||||
# Renders the label on the right
|
# Renders the label on the right
|
||||||
|
|
Loading…
Reference in New Issue