diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Lincolnshire.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm index 32106eb4e..42103a4b4 100644 --- a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm +++ b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm @@ -90,4 +90,14 @@ sub categories_restriction { sub map_type { 'Lincolnshire' } +sub pin_colour { + my ( $self, $p, $context ) = @_; + my $ext_status = $p->get_extra_metadata('external_status_code'); + return 'yellow' if $p->state eq 'confirmed' && $ext_status && $ext_status eq '0135'; + return 'red' if $p->state eq 'confirmed'; + return 'green' if $p->is_fixed || $p->is_closed; + return 'grey' if $p->state eq 'not responsible' || !$self->owns_problem( $p ); + return 'yellow'; +} + 1; |