gantt: code layout cleanup html weeks headers

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

View File

@ -136,20 +136,16 @@
%>
<% end %>
<%
#
# Weeks headers
#
%>
<% ###### Weeks headers ###### %>
<% if show_weeks %>
<%
left = 0
height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height)
left = 0
height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height)
%>
<% if @gantt.date_from.cwday == 1 %>
<%
# @date_from is monday
week_f = @gantt.date_from
# @date_from is monday
week_f = @gantt.date_from
%>
<% else %>
<%
@ -183,8 +179,8 @@
<% end %>
<% end %>
<%
left = left + width + 1
week_f = week_f + 7
left = left + width + 1
week_f = week_f + 7
%>
<% end %>
<% end %>