summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/reports/_details.html.erb11
-rw-r--r--app/views/reports/_simple.html.erb8
2 files changed, 19 insertions, 0 deletions
diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb
index ab660bc16..930fca6a8 100644
--- a/app/views/reports/_details.html.erb
+++ b/app/views/reports/_details.html.erb
@@ -24,6 +24,17 @@
</tr>
<% end %>
</tbody>
+<tfoot>
+<tr class="total">
+ <td><%= l(:label_total) %></td>
+ <% for status in @statuses %>
+ <td><%= aggregate data, { "status_id" => status.id } %></td>
+ <% end %>
+ <td><%= aggregate data, { "closed" => 0 } %></td>
+ <td><%= aggregate data, { "closed" => 1 } %></td>
+ <td><%= aggregate data, { } %></td>
+</tr>
+</tfoot>
</table>
<% other_formats_links do |f| %>
<%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
diff --git a/app/views/reports/_simple.html.erb b/app/views/reports/_simple.html.erb
index 754b1f21d..2237728b2 100644
--- a/app/views/reports/_simple.html.erb
+++ b/app/views/reports/_simple.html.erb
@@ -17,6 +17,14 @@
<td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*", :subproject_id => nil) %></td>
</tr>
<% end %>
+<tfoot>
+<tr class="total">
+ <td><%= l(:label_total) %></td>
+ <td><%= aggregate data, { "closed" => 0 } %></td>
+ <td><%= aggregate data, { "closed" => 1 } %></td>
+ <td><%= aggregate data, { } %></td>
+</tr>
+</tfoot>
</tbody>
</table>
<% end %>