less debugging

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1367 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 15 years ago
parent 830f6e8c33
commit 1c25ec009a
  1. 6
      app/views/cost_reports/_cost_report_table.rhtml

@ -15,7 +15,7 @@
subrows
end
walker.for_empty_cell { "<td>&nbsp;#{":)" if params[:debug]}</td>" }
walker.for_empty_cell { "<td>&nbsp;</td>" }
walker.for_cell do |result|
"<td>#{number_to_currency result.real_costs}#{", " << result.fields.inspect << ", " << result.key.inspect if params[:debug]}</td>"
@ -26,11 +26,11 @@
<theader>
<% walker.headers do |list, first, first_in_col, last_in_col| %>
<%= '<tr>' if first_in_col %>
<%= "<th rowspan='#{query.depth_of(:column)}' colspan='#{query.depth_of(:row)}'>#{'x' if params[:debug]}</th>" if first %>
<%= "<th rowspan='#{query.depth_of(:column)}' colspan='#{query.depth_of(:row)}'></th>" if first %>
<% list.each do |column| %>
<th colspan="<%= column.final_number(:column) %>"><%= show_row column %></th>
<% end %>
<%= "<th rowspan='#{@query.depth_of(:column)}' colspan='#{query.depth_of(:row)}'>#{'x' if params[:debug]}</th>" if first %>
<%= "<th rowspan='#{@query.depth_of(:column)}' colspan='#{query.depth_of(:row)}'></th>" if first %>
<%= '</tr>' if last_in_col %>
<% end %>
<theader>

Loading…
Cancel
Save