diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-04 08:14:50 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-04 08:14:50 +0000 |
commit | 33ffaaf0c28859cd055ab1aaa1be797ac1387a7d (patch) | |
tree | 23f798ecc58ee5371a69c3b0272ce3a444269ca6 | |
parent | 32cb826ae50efd512677a5ea890a647af3cd0aa0 (diff) |
Right default pin colour on all reports.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index 963c8a6ad..e5a02c44c 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -709,7 +709,7 @@ Returns the colour of pin to be used for a particular report sub pin_colour { my ( $self, $p, $context ) = @_; #return 'green' if time() - $p->confirmed_local->epoch < 7 * 24 * 60 * 60; - return 'yellow' if $context eq 'around'; + return 'yellow' if $context eq 'around' || $context eq 'reports'; return $p->is_fixed ? 'green' : 'red'; } |