##// END OF EJS Templates
gantt: use content_tag instead of html tag at days headers...
Toshi MARUYAMA -
r10141:d4fc347a8aae
parent child
Show More
@@ -201,11 +201,19
201 wday = @gantt.date_from.cwday
201 wday = @gantt.date_from.cwday
202 %>
202 %>
203 <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>
203 <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>
204 <% width = zoom - 1 %>
204 <%
205 <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>"
205 width = zoom - 1
206 class="gantt_hdr">
206 style = ""
207 <%= day_letter(wday) %>
207 style += "left: #{left}px;"
208 </div>
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 left = left + width + 1
218 left = left + width + 1
211 wday = wday + 1
219 wday = wday + 1
General Comments 0
You need to be logged in to leave comments. Login now