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 10, 2024
1 parent 60d9e76 commit dca3b3a
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' }

Check warning on line 61 in perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm#L61

Added line #L61 was not covered by tests

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

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

Check warning on line 70 in perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm#L70

Added line #L70 was not covered by tests

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

Check warning on line 73 in perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/NottinghamshirePolice.pm#L73

Added line #L73 was not covered by tests
}

1;

0 comments on commit dca3b3a

Please sign in to comment.