177 |
177 |
<% end %>
|
178 |
178 |
<% end %>
|
179 |
179 |
</td>
|
180 |
|
<% @query.columns.each do |column| %>
|
181 |
|
<% next if Redmine::Helpers::Gantt::UNAVAILABLE_COLUMNS.include?(column.name) %>
|
182 |
|
<td class="gantt_<%= column.name %>_column gantt_selected_column <%= 'last_gantt_selected_column' if @query.columns.last == column %>" id="<%= column.name %>">
|
|
180 |
<%
|
|
181 |
@query.columns.each do |column|
|
|
182 |
next if Redmine::Helpers::Gantt::UNAVAILABLE_COLUMNS.include?(column.name)
|
|
183 |
column_name = column.name.to_s.tr('.', '_')
|
|
184 |
%>
|
|
185 |
<td class="gantt_<%= column_name %>_column gantt_selected_column <%= 'last_gantt_selected_column' if @query.columns.last == column %>" id="<%= column_name %>">
|
183 |
186 |
<%
|
184 |
187 |
style = "position: relative;"
|
185 |
188 |
style += "height: #{t_height + 24}px;"
|
186 |
189 |
%>
|
187 |
|
<%= content_tag(:div, :style => style, :class => "gantt_#{column.name}_container gantt_selected_column_container") do %>
|
|
190 |
<%= content_tag(:div, :style => style, :class => "gantt_#{column_name}_container gantt_selected_column_container") do %>
|
188 |
191 |
<%
|
189 |
192 |
style = "height: #{t_height}px;"
|
190 |
193 |
style += 'overflow: hidden;'
|
... | ... | |
195 |
198 |
style += 'background: #eee;'
|
196 |
199 |
%>
|
197 |
200 |
<%= content_tag(:div, content_tag(:p, column.caption, :class => 'gantt_hdr_selected_column_name'), :style => style, :class => "gantt_hdr") %>
|
198 |
|
<%= content_tag(:div, :class => "gantt_#{column.name} gantt_selected_column_content") do %>
|
|
201 |
<%= content_tag(:div, :class => "gantt_#{column_name} gantt_selected_column_content") do %>
|
199 |
202 |
<%= @gantt.selected_column_content({:column => column, :top => headers_height + 8, :zoom => zoom, :g_width => g_width}).html_safe %>
|
200 |
203 |
<% end %>
|
201 |
204 |
<% end %>
|