From be79dd25f886301573c9811e005fd7966ae64dc9 Mon Sep 17 00:00:00 2001
From: Markus Knittig <markus@myd0.de>
Date: Fri, 5 Dec 2008 22:01:25 +0100
Subject: [PATCH] Added Total columns to issue report (#2281)

---
 app/views/reports/_details.rhtml |   13 +++++++++++++
 app/views/reports/_simple.rhtml  |   10 ++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/app/views/reports/_details.rhtml b/app/views/reports/_details.rhtml
index c3ad2be..2215d1a 100644
--- a/app/views/reports/_details.rhtml
+++ b/app/views/reports/_details.rhtml
@@ -44,5 +44,18 @@
 <% end %>
 </tbody>
 </table>
+<table style="border-collapse: collapse; width: 100%; font-weight: bold">
+<tbody>
+<tr>
+  <td style="width:25%"><%= l(:label_total) %></td>
+  <% for status in @statuses %>
+    <td align="center" style="width:<%= col_width %>%"><%= aggregate data, { "status_id" => status.id }  %></td>
+  <% end %>
+  <td align="center" style="width:<%= col_width %>%"><%= aggregate data, { "closed" => 0 }  %></td>
+  <td align="center" style="width:<%= col_width %>%"><%= aggregate data, { "closed" => 1 }  %></td>
+  <td align="center" style="width:<%= col_width %>%"><%= aggregate data, {}  %></td>
+</tr>
+</tbody>
+</table>
 <% end
   reset_cycle %>
\ No newline at end of file
diff --git a/app/views/reports/_simple.rhtml b/app/views/reports/_simple.rhtml
index 7f799f3..7fc299c 100644
--- a/app/views/reports/_simple.rhtml
+++ b/app/views/reports/_simple.rhtml
@@ -33,5 +33,15 @@
 <% end %>
 </tbody>
 </table>
+<table style="border-collapse: collapse; width: 100%; font-weight: bold">
+<tbody>
+<tr>
+  <td style="width:25%"><%= l(:label_total) %></td>
+  <td align="center" style="width:25%"><%= aggregate data, { "closed" => 0 }  %></td>
+  <td align="center" style="width:25%"><%= aggregate data, { "closed" => 1 }  %></td>
+  <td align="center" style="width:25%"><%= aggregate data, {}  %></td>
+</tr>
+</tbody>
+</table>
 <% end
   reset_cycle %>
\ No newline at end of file
-- 
1.5.6.3

