diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-01 13:53:18 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-01 13:53:18 +0100 |
commit | 0eec3a2bbe1eb94267a9694baa10d13a5fb484be (patch) | |
tree | dce2f05810a3cc77c3899b9e0606803d0238d85f /perllib/FixMyStreet/Cobrand/Bromley.pm | |
parent | 740549720bd386550d63733cc3fd9eaeab39de91 (diff) |
Fix CM8 Bromley pin colours.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index a9088f32a..b59080848 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -37,6 +37,12 @@ sub recent_photos { return $self->problems->recent_photos( $num, $lat, $lon, $dist ); } +sub pin_colour { + my ( $self, $p ) = @_; + return 'green' if time() - $p->confirmed_local->epoch < 7 * 24 * 60 * 60; + return 'yellow'; +} + sub process_extras { my $self = shift; my $ctx = shift; |