@@ -197,13 +197,18 height = (show_weeks ? header_heigth : header_heigth + g_height) | |||
|
197 | 197 | |
|
198 | 198 | <%= @gantt.lines.html_safe %> |
|
199 | 199 | |
|
200 | <% ###### Today red line (excluded from cache) ###### %> | |
|
201 | <% if Date.today >= @gantt.date_from and Date.today <= @gantt.date_to %> | |
|
200 | 202 | <% |
|
201 | # | |
|
202 | # Today red line (excluded from cache) | |
|
203 | # | |
|
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;" | |
|
204 | 210 | %> |
|
205 | <% 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;"> </div> | |
|
211 | <%= content_tag(:div, ' '.html_safe, :style => style) %> | |
|
207 | 212 | <% end %> |
|
208 | 213 | |
|
209 | 214 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now