diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixaMinGata.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm index 60f98dd47..7e8942feb 100644 --- a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm +++ b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm @@ -236,4 +236,13 @@ sub reports_council_check { } } +# The pin is green is it's fixed, yellow if it's closed (but not fixed), and +# red otherwise. +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'green' if $p->is_fixed; + return 'yellow' if $p->is_closed; + return 'red'; +} + 1; |