diff options
author | Dave Arter <davea@mysociety.org> | 2019-08-27 15:41:55 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-27 15:41:55 +0100 |
commit | 772a024c5bfbd57c4077317f3a33596e6b3390cb (patch) | |
tree | 3d038bd4e623e4da0aa7fe7987f091c5be07f88c | |
parent | 1b45825a74abf3fbc709c8c7169d83a3e6de4e7a (diff) |
[Hounslow] Add pin_colour function
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Hounslow.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Hounslow.pm b/perllib/FixMyStreet/Cobrand/Hounslow.pm index 93512f2b9..2987c0ae3 100644 --- a/perllib/FixMyStreet/Cobrand/Hounslow.pm +++ b/perllib/FixMyStreet/Cobrand/Hounslow.pm @@ -45,6 +45,12 @@ sub get_geocoder { sub on_map_default_status { 'open' } +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'green' if $p->is_fixed || $p->is_closed; + return 'yellow'; +} + sub send_questionnaires { 0 } sub categories_restriction { |