gantt: code layout cleanup html days headers

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10326 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-09-08 03:21:55 +00:00
parent ad4ee1c8d8
commit ffcf1925e3
1 changed files with 7 additions and 11 deletions

View File

@ -185,16 +185,12 @@
<% end %> <% end %>
<% end %> <% end %>
<% <% ###### Days headers ####### %>
#
# Days headers
#
%>
<% if show_days %> <% if show_days %>
<% <%
left = 0 left = 0
height = g_height + header_heigth - 1 height = g_height + header_heigth - 1
wday = @gantt.date_from.cwday wday = @gantt.date_from.cwday
%> %>
<% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>
<% <%
@ -211,9 +207,9 @@
<%= day_letter(wday) %> <%= day_letter(wday) %>
<% end %> <% end %>
<% <%
left = left + width + 1 left = left + width + 1
wday = wday + 1 wday = wday + 1
wday = 1 if wday > 7 wday = 1 if wday > 7
%> %>
<% end %> <% end %>
<% end %> <% end %>