aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-23 10:53:20 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-23 10:53:20 +0100
commit42679c55a9623b98a0409075fed494574a9a81df (patch)
tree0da2f92b90f0d6fba6ff2ff0711f28e87f2784d5 /perllib/FixMyStreet/Cobrand/Default.pm
parent6f00ea0f96c25d81adf7e9e68a0228d193eb45d0 (diff)
parenta27a999d381957e448d1d4e10f2a476f7ae2c268 (diff)
Merge remote-tracking branch 'origin/bromley' into bromley
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 76113d273..c0a0b1ff7 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -942,9 +942,10 @@ Returns the colour of pin to be used for a particular report
=cut
sub pin_colour {
- my ( $self, $p ) = @_;
+ my ( $self, $p, $context ) = @_;
#return 'green' if time() - $p->confirmed_local->epoch < 7 * 24 * 60 * 60;
- return 'yellow';
+ return 'yellow' if $context eq 'around';
+ return $p->is_fixed ? 'green' : 'red';
}
1;