##// END OF EJS Templates
code layout cleanup gantt months headers...
Toshi MARUYAMA -
r10128:621b15c923a7
parent child
Show More
@@ -92,12 +92,14 t_height = g_height + headers_height
92 92 #
93 93 # Months headers
94 94 #
95 %>
96 <%
95 97 month_f = @gantt.date_from
96 98 left = 0
97 99 height = (show_weeks ? header_heigth : header_heigth + g_height)
98 @gantt.months.times do
99 width = (((month_f >> 1) - month_f) * zoom - 1).to_i
100 %>
100 %>
101 <% @gantt.months.times do %>
102 <% width = (((month_f >> 1) - month_f) * zoom - 1).to_i %>
101 103 <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">
102 104 <%= link_to h("#{month_f.year}-#{month_f.month}"),
103 105 @gantt.params.merge(:year => month_f.year, :month => month_f.month),
@@ -106,7 +108,8 height = (show_weeks ? header_heigth : header_heigth + g_height)
106 108 <%
107 109 left = left + width + 1
108 110 month_f = month_f >> 1
109 end %>
111 %>
112 <% end %>
110 113
111 114 <%
112 115 #
General Comments 0
You need to be logged in to leave comments. Login now