From ad4ee1c8d842284080e25e9c3317737c93d92a4f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 8 Sep 2012 03:21:17 +0000 Subject: [PATCH] gantt: code layout cleanup html weeks headers git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10325 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/gantts/show.html.erb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index d9a291795..2034b8401 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -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 %>