Skip to content

Commit

Permalink
[Northumberland] Update pin colours
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Nov 1, 2023
1 parent 7642e6f commit f11d15b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions perllib/FixMyStreet/Cobrand/Northumberland.pm
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,8 @@ sub open311_title_fetched_report {

sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'grey' if $p->state eq 'not responsible' || !$self->owns_problem($p);
return 'green' if $p->state eq 'confirmed';
return 'yellow' if $p->state eq 'investigating';
return 'blue' if $p->state eq 'action scheduled';
return 'red' if $p->is_fixed;
return 'green' if $p->is_closed || $p->is_fixed;
return 'red' if $p->state eq 'confirmed';
return 'orange'; # all the other `open_states` like "in progress"
}

Expand Down

0 comments on commit f11d15b

Please sign in to comment.