@@ -185,16 +185,12 | |||||
185 | <% end %> |
|
185 | <% end %> | |
186 | <% end %> |
|
186 | <% end %> | |
187 |
|
187 | |||
188 | <% |
|
188 | <% ###### Days headers ####### %> | |
189 | # |
|
|||
190 | # Days headers |
|
|||
191 | # |
|
|||
192 | %> |
|
|||
193 | <% if show_days %> |
|
189 | <% if show_days %> | |
194 | <% |
|
190 | <% | |
195 | left = 0 |
|
191 | left = 0 | |
196 | height = g_height + header_heigth - 1 |
|
192 | height = g_height + header_heigth - 1 | |
197 | wday = @gantt.date_from.cwday |
|
193 | wday = @gantt.date_from.cwday | |
198 | %> |
|
194 | %> | |
199 | <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> |
|
195 | <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> | |
200 | <% |
|
196 | <% | |
@@ -211,9 +207,9 | |||||
211 | <%= day_letter(wday) %> |
|
207 | <%= day_letter(wday) %> | |
212 | <% end %> |
|
208 | <% end %> | |
213 | <% |
|
209 | <% | |
214 | left = left + width + 1 |
|
210 | left = left + width + 1 | |
215 | wday = wday + 1 |
|
211 | wday = wday + 1 | |
216 | wday = 1 if wday > 7 |
|
212 | wday = 1 if wday > 7 | |
217 | %> |
|
213 | %> | |
218 | <% end %> |
|
214 | <% end %> | |
219 | <% end %> |
|
215 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now