@@ -201,11 +201,19 | |||
|
201 | 201 | wday = @gantt.date_from.cwday |
|
202 | 202 | %> |
|
203 | 203 | <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> |
|
204 | <% width = zoom - 1 %> | |
|
205 | <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" | |
|
206 | class="gantt_hdr"> | |
|
207 | <%= day_letter(wday) %> | |
|
208 | </div> | |
|
204 | <% | |
|
205 | width = zoom - 1 | |
|
206 | style = "" | |
|
207 | style += "left: #{left}px;" | |
|
208 | style += "top:37px;" | |
|
209 | style += "width: #{width}px;" | |
|
210 | style += "height: #{height}px;" | |
|
211 | style += "font-size:0.7em;" | |
|
212 | style += 'background:#f1f1f1;' if wday > 5 | |
|
213 | %> | |
|
214 | <%= content_tag(:div, :style => style, :class => "gantt_hdr") do %> | |
|
215 | <%= day_letter(wday) %> | |
|
216 | <% end %> | |
|
209 | 217 | <% |
|
210 | 218 | left = left + width + 1 |
|
211 | 219 | wday = wday + 1 |
General Comments 0
You need to be logged in to leave comments.
Login now