Remove count column from table. Fixes #3595.

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1924 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 14 years ago committed by jwollert
parent 7e3fe1ca39
commit b624844262
  1. 5
      app/views/cost_reports/_simple_cost_report_table.rhtml

@ -7,7 +7,6 @@ show_units = list.include? "cost_type_id"
<thead> <thead>
<tr> <tr>
<% list.each do |field| %><th class="right"><%= label_for(field) %></th><% end %> <% list.each do |field| %><th class="right"><%= label_for(field) %></th><% end %>
<th class="right"><%= label_for(:label_count) %></th>
<% if show_units %> <% if show_units %>
<th class="right"><%= label_for(:field_units) %></th> <th class="right"><%= label_for(:field_units) %></th>
<% end %> <% end %>
@ -17,9 +16,6 @@ show_units = list.include? "cost_type_id"
<tfoot> <tfoot>
<tr> <tr>
<th class="result inner" colspan='<%= list.size %>'></th> <th class="result inner" colspan='<%= list.size %>'></th>
<th class="result inner">
<%= @query.count %>
</th>
<th class="result right" <%= "colspan='2'" if show_units %>> <th class="result right" <%= "colspan='2'" if show_units %>>
<%= show_result @query %> <%= show_result @query %>
</th> </th>
@ -31,7 +27,6 @@ show_units = list.include? "cost_type_id"
<td raw-data="<%= raw_field(*result.fields.first) -%>"> <td raw-data="<%= raw_field(*result.fields.first) -%>">
<%= show_row result %> <%= show_row result %>
</td> </td>
<td><%= result.count %></td>
<% if show_units %> <% if show_units %>
<td raw-data="<%= result.units -%>"><%= show_result result, result.fields[:cost_type_id].to_i %></td> <td raw-data="<%= result.units -%>"><%= show_result result, result.fields[:cost_type_id].to_i %></td>
<% end %> <% end %>

Loading…
Cancel
Save