aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-08-27 15:41:55 +0100
committerDave Arter <davea@mysociety.org>2019-08-27 15:41:55 +0100
commit772a024c5bfbd57c4077317f3a33596e6b3390cb (patch)
tree3d038bd4e623e4da0aa7fe7987f091c5be07f88c
parent1b45825a74abf3fbc709c8c7169d83a3e6de4e7a (diff)
[Hounslow] Add pin_colour function
-rw-r--r--perllib/FixMyStreet/Cobrand/Hounslow.pm6
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 {