--- show.html_org.erb Mon Mar 7 20:41:52 2011 +++ show.html.erb Fri May 13 21:31:32 2011 @@ -47,6 +47,7 @@ headers_height = header_heigth show_weeks = false show_days = false +show_day_num = false if @gantt.zoom >1 show_weeks = true @@ -54,6 +55,10 @@ if @gantt.zoom > 2 show_days = true headers_height = 3*header_heigth + if @gantt.zoom > 3 + show_day_num = true + headers_height = 4*header_heigth + end end end @@ -140,6 +145,29 @@ end end %> +<% +# +# Days headers Num +# +if show_day_num + left = 0 + height = g_height + header_heigth*2 - 1 + wday = @gantt.date_from.cwday + day_num = @gantt.date_from + (@gantt.date_to - @gantt.date_from + 1).to_i.times do + width = zoom - 1 +%> +