|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
subrows |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
walker.for_empty_cell { "<td> #{":)" if params[:debug]}</td>" } |
|
|
|
|
walker.for_empty_cell { "<td> </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> |
|
|
|
|