Skip to content

Commit

Permalink
[Notts Police] Pin colours
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea committed Jun 17, 2024
1 parent 55664a6 commit 06e6ea2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,17 @@ sub allow_anonymous_reports { 0 }

sub admin_user_domain { 'notts.police.uk' }

=head2 pin_colour
Yellow for open, green for closed or fixed.
=cut

sub pin_colour {
my ( $self, $p ) = @_;

return 'green' if $p->is_fixed || $p->is_closed;
return 'yellow';
}

1;

0 comments on commit 06e6ea2

Please sign in to comment.