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 %>