aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-31 16:15:46 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-31 16:15:46 +0000
commited9ad60d98454cfabd240040650f73db03aa37e4 (patch)
tree400591eb1f1a369489cd886c7a39130cea721c4d
parent0d6596e57f5fa3759612bb177e30f8b4ba0d6302 (diff)
Fix front page stats (fixes a33).
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm4
-rw-r--r--templates/web/default/front/stats.html2
2 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index eccd43ebb..c7b2f534f 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -7,6 +7,10 @@ use POSIX qw(strcoll);
use strict;
use warnings;
+sub shorten_recency_if_new_greater_than_fixed {
+ return 0;
+}
+
sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'green' if $p->is_fixed || $p->is_closed;
diff --git a/templates/web/default/front/stats.html b/templates/web/default/front/stats.html
index c5d931d08..927ae4eb1 100644
--- a/templates/web/default/front/stats.html
+++ b/templates/web/default/front/stats.html
@@ -39,5 +39,7 @@
[% IF c.cobrand.moniker != 'emptyhomes' %]
<div>[% tprintf( fixed_text, stats.fixed ) | comma %]</div>
[% END %]
+ [% IF c.cobrand.moniker != 'zurich' %]
<div>[% tprintf( updates_text, stats.updates ) | comma %]</div>
+ [% END %]
</div>