##// END OF EJS Templates
gantt: code layout cleanup html gantt days headers...
Toshi MARUYAMA -
r10131:b9586dd5702e
parent child
Show More
@@ -152,13 +152,15 height = (show_weeks ? header_heigth : header_heigth + g_height)
152 152 #
153 153 # Days headers
154 154 #
155 if show_days
155 %>
156 <% if show_days %>
157 <%
156 158 left = 0
157 159 height = g_height + header_heigth - 1
158 160 wday = @gantt.date_from.cwday
159 (@gantt.date_to - @gantt.date_from + 1).to_i.times do
160 width = zoom - 1
161 161 %>
162 <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>
163 <% width = zoom - 1 %>
162 164 <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>"
163 165 class="gantt_hdr">
164 166 <%= day_letter(wday) %>
@@ -167,8 +169,9 if show_days
167 169 left = left + width + 1
168 170 wday = wday + 1
169 171 wday = 1 if wday > 7
170 end
171 end %>
172 %>
173 <% end %>
174 <% end %>
172 175
173 176 <%= @gantt.lines.html_safe %>
174 177
General Comments 0
You need to be logged in to leave comments. Login now