@@ -105,18 +105,15 t_height = g_height + headers_height | |||||
105 | <div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;"> |
|
105 | <div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;"> | |
106 | <div style="width:<%= g_width - 1 %>px;height:<%= headers_height %>px;background: #eee;" |
|
106 | <div style="width:<%= g_width - 1 %>px;height:<%= headers_height %>px;background: #eee;" | |
107 | class="gantt_hdr"> </div> |
|
107 | class="gantt_hdr"> </div> | |
|
108 | ||||
|
109 | <% ###### Months headers ###### %> | |||
108 | <% |
|
110 | <% | |
109 | # |
|
111 | month_f = @gantt.date_from | |
110 | # Months headers |
|
112 | left = 0 | |
111 | # |
|
113 | height = (show_weeks ? header_heigth : header_heigth + g_height) | |
112 | %> |
|
|||
113 | <% |
|
|||
114 | month_f = @gantt.date_from |
|
|||
115 | left = 0 |
|
|||
116 | height = (show_weeks ? header_heigth : header_heigth + g_height) |
|
|||
117 | %> |
|
114 | %> | |
118 | <% @gantt.months.times do %> |
|
115 | <% @gantt.months.times do %> | |
119 |
<% |
|
116 | <% | |
120 | width = (((month_f >> 1) - month_f) * zoom - 1).to_i |
|
117 | width = (((month_f >> 1) - month_f) * zoom - 1).to_i | |
121 | style = "" |
|
118 | style = "" | |
122 | style += "left: #{left}px;" |
|
119 | style += "left: #{left}px;" | |
@@ -129,8 +126,8 height = (show_weeks ? header_heigth : header_heigth + g_height) | |||||
129 | :title => "#{month_name(month_f.month)} #{month_f.year}" %> |
|
126 | :title => "#{month_name(month_f.month)} #{month_f.year}" %> | |
130 | <% end %> |
|
127 | <% end %> | |
131 | <% |
|
128 | <% | |
132 | left = left + width + 1 |
|
129 | left = left + width + 1 | |
133 | month_f = month_f >> 1 |
|
130 | month_f = month_f >> 1 | |
134 | %> |
|
131 | %> | |
135 | <% end %> |
|
132 | <% end %> | |
136 |
|
133 |
General Comments 0
You need to be logged in to leave comments.
Login now