@@ -152,23 +152,26 height = (show_weeks ? header_heigth : header_heigth + g_height) | |||||
152 | # |
|
152 | # | |
153 | # Days headers |
|
153 | # Days headers | |
154 | # |
|
154 | # | |
155 | if show_days |
|
155 | %> | |
|
156 | <% if show_days %> | |||
|
157 | <% | |||
156 | left = 0 |
|
158 | left = 0 | |
157 | height = g_height + header_heigth - 1 |
|
159 | height = g_height + header_heigth - 1 | |
158 | wday = @gantt.date_from.cwday |
|
160 | wday = @gantt.date_from.cwday | |
159 | (@gantt.date_to - @gantt.date_from + 1).to_i.times do |
|
161 | %> | |
160 | width = zoom - 1 |
|
162 | <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> | |
161 | %> |
|
163 | <% width = zoom - 1 %> | |
162 | <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" |
|
164 | <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" | |
163 | class="gantt_hdr"> |
|
165 | class="gantt_hdr"> | |
164 | <%= day_letter(wday) %> |
|
166 | <%= day_letter(wday) %> | |
165 | </div> |
|
167 | </div> | |
166 | <% |
|
168 | <% | |
167 | left = left + width + 1 |
|
169 | left = left + width + 1 | |
168 | wday = wday + 1 |
|
170 | wday = wday + 1 | |
169 | wday = 1 if wday > 7 |
|
171 | wday = 1 if wday > 7 | |
170 | end |
|
172 | %> | |
171 | end %> |
|
173 | <% end %> | |
|
174 | <% end %> | |||
172 |
|
175 | |||
173 | <%= @gantt.lines.html_safe %> |
|
176 | <%= @gantt.lines.html_safe %> | |
174 |
|
177 |
General Comments 0
You need to be logged in to leave comments.
Login now