@@ -136,20 +136,16 | |||||
136 | %> |
|
136 | %> | |
137 | <% end %> |
|
137 | <% end %> | |
138 |
|
138 | |||
139 | <% |
|
139 | <% ###### Weeks headers ###### %> | |
140 | # |
|
|||
141 | # Weeks headers |
|
|||
142 | # |
|
|||
143 | %> |
|
|||
144 | <% if show_weeks %> |
|
140 | <% if show_weeks %> | |
145 | <% |
|
141 | <% | |
146 | left = 0 |
|
142 | left = 0 | |
147 | height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height) |
|
143 | height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height) | |
148 | %> |
|
144 | %> | |
149 | <% if @gantt.date_from.cwday == 1 %> |
|
145 | <% if @gantt.date_from.cwday == 1 %> | |
150 | <% |
|
146 | <% | |
151 | # @date_from is monday |
|
147 | # @date_from is monday | |
152 | week_f = @gantt.date_from |
|
148 | week_f = @gantt.date_from | |
153 | %> |
|
149 | %> | |
154 | <% else %> |
|
150 | <% else %> | |
155 | <% |
|
151 | <% | |
@@ -183,8 +179,8 | |||||
183 | <% end %> |
|
179 | <% end %> | |
184 | <% end %> |
|
180 | <% end %> | |
185 | <% |
|
181 | <% | |
186 | left = left + width + 1 |
|
182 | left = left + width + 1 | |
187 | week_f = week_f + 7 |
|
183 | week_f = week_f + 7 | |
188 | %> |
|
184 | %> | |
189 | <% end %> |
|
185 | <% end %> | |
190 | <% end %> |
|
186 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now