##// END OF EJS Templates
gantt: use content_tag instead of html tag at gantt today red line...
Toshi MARUYAMA -
r10134:3431b860ad6b
parent child
Show More
@@ -197,13 +197,18 height = (show_weeks ? header_heigth : header_heigth + g_height)
197
197
198 <%= @gantt.lines.html_safe %>
198 <%= @gantt.lines.html_safe %>
199
199
200 <%
200 <% ###### Today red line (excluded from cache) ###### %>
201 #
202 # Today red line (excluded from cache)
203 #
204 %>
205 <% if Date.today >= @gantt.date_from and Date.today <= @gantt.date_to %>
201 <% if Date.today >= @gantt.date_from and Date.today <= @gantt.date_to %>
206 <div style="position: absolute;height:<%= g_height %>px;top:<%= headers_height + 1 %>px;left:<%= (((Date.today - @gantt.date_from + 1) * zoom).floor() - 1).to_i %>px;width:10px;border-left: 1px dashed red;">&nbsp;</div>
202 <%
203 style = ""
204 style += "position: absolute;"
205 style += "height: #{g_height}px;"
206 style += "top: #{headers_height + 1}px;"
207 style += "left: #{(((Date.today - @gantt.date_from + 1) * zoom).floor() - 1).to_i}px;"
208 style += "width:10px;"
209 style += "border-left: 1px dashed red;"
210 %>
211 <%= content_tag(:div, '&nbsp;'.html_safe, :style => style) %>
207 <% end %>
212 <% end %>
208
213
209 </div>
214 </div>
General Comments 0
You need to be logged in to leave comments. Login now