@@ -92,12 +92,14 t_height = g_height + headers_height | |||||
92 | # |
|
92 | # | |
93 | # Months headers |
|
93 | # Months headers | |
94 | # |
|
94 | # | |
|
95 | %> | |||
|
96 | <% | |||
95 | month_f = @gantt.date_from |
|
97 | month_f = @gantt.date_from | |
96 | left = 0 |
|
98 | left = 0 | |
97 | height = (show_weeks ? header_heigth : header_heigth + g_height) |
|
99 | height = (show_weeks ? header_heigth : header_heigth + g_height) | |
98 | @gantt.months.times do |
|
100 | %> | |
99 | width = (((month_f >> 1) - month_f) * zoom - 1).to_i |
|
101 | <% @gantt.months.times do %> | |
100 | %> |
|
102 | <% width = (((month_f >> 1) - month_f) * zoom - 1).to_i %> | |
101 | <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr"> |
|
103 | <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr"> | |
102 | <%= link_to h("#{month_f.year}-#{month_f.month}"), |
|
104 | <%= link_to h("#{month_f.year}-#{month_f.month}"), | |
103 | @gantt.params.merge(:year => month_f.year, :month => month_f.month), |
|
105 | @gantt.params.merge(:year => month_f.year, :month => month_f.month), | |
@@ -106,7 +108,8 height = (show_weeks ? header_heigth : header_heigth + g_height) | |||||
106 | <% |
|
108 | <% | |
107 | left = left + width + 1 |
|
109 | left = left + width + 1 | |
108 | month_f = month_f >> 1 |
|
110 | month_f = month_f >> 1 | |
109 |
|
|
111 | %> | |
|
112 | <% end %> | |||
110 |
|
113 | |||
111 | <% |
|
114 | <% | |
112 | # |
|
115 | # |
General Comments 0
You need to be logged in to leave comments.
Login now