diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index ad90592..076b6c7 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -92,12 +92,14 @@ t_height = g_height + headers_height # # Months headers # +%> +<% month_f = @gantt.date_from left = 0 height = (show_weeks ? header_heigth : header_heigth + g_height) -@gantt.months.times do - width = (((month_f >> 1) - month_f) * zoom - 1).to_i - %> +%> +<% @gantt.months.times do %> + <% width = (((month_f >> 1) - month_f) * zoom - 1).to_i %>