aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
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;