aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm3
-rw-r--r--templates/web/zurich/admin/stats.html1
2 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 75374f0f5..7ac776df2 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -599,6 +599,8 @@ sub admin_stats {
$c->res->body($body);
}
+ # Total reports (non-hidden)
+ my $total = $c->model('DB::Problem')->search( \%params )->count;
# Device for apps (iOS/Android)
my $per_service = $c->model('DB::Problem')->search( \%params, {
select => [ 'service', { count => 'id' } ],
@@ -640,6 +642,7 @@ sub admin_stats {
$c->stash(
per_service => $per_service,
per_category => $per_category,
+ reports_total => $total,
reports_solved => $solved,
reports_spam => $hidden,
reports_assigned => $closed,
diff --git a/templates/web/zurich/admin/stats.html b/templates/web/zurich/admin/stats.html
index 97a66cd11..92521ff1d 100644
--- a/templates/web/zurich/admin/stats.html
+++ b/templates/web/zurich/admin/stats.html
@@ -27,6 +27,7 @@
</form>
<ul>
+<li>[% loc('Total') %]: [% reports_total || 0 %]
<li>[% loc('Closed') %]: [% reports_solved || 0 %]
<li>[% loc('Hidden') %]: [% reports_spam || 0 %]
<li>Externe Adressen: [% reports_assigned || 0 %]