##// END OF EJS Templates
gantt: code layout cleanup html months headers...
Toshi MARUYAMA -
r10138:eeedd287adf3
parent child
Show More
@@ -105,18 +105,15 t_height = g_height + headers_height
105 105 <div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;">
106 106 <div style="width:<%= g_width - 1 %>px;height:<%= headers_height %>px;background: #eee;"
107 107 class="gantt_hdr">&nbsp;</div>
108
109 <% ###### Months headers ###### %>
108 110 <%
109 #
110 # Months headers
111 #
112 %>
113 <%
114 month_f = @gantt.date_from
115 left = 0
116 height = (show_weeks ? header_heigth : header_heigth + g_height)
111 month_f = @gantt.date_from
112 left = 0
113 height = (show_weeks ? header_heigth : header_heigth + g_height)
117 114 %>
118 115 <% @gantt.months.times do %>
119 <%
116 <%
120 117 width = (((month_f >> 1) - month_f) * zoom - 1).to_i
121 118 style = ""
122 119 style += "left: #{left}px;"
@@ -129,8 +126,8 height = (show_weeks ? header_heigth : header_heigth + g_height)
129 126 :title => "#{month_name(month_f.month)} #{month_f.year}" %>
130 127 <% end %>
131 128 <%
132 left = left + width + 1
133 month_f = month_f >> 1
129 left = left + width + 1
130 month_f = month_f >> 1
134 131 %>
135 132 <% end %>
136 133
General Comments 0
You need to be logged in to leave comments. Login now