Skip to content

Commit

Permalink
Update PopraviTo.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
schlos committed Jan 14, 2022
1 parent bace3d0 commit 9c3e3de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions perllib/FixMyStreet/Cobrand/PopraviTo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ sub language_override { 'hr' }

sub send_questionnaires { 1 }

# The pin is green is it's fixed or closed, yellow if it's in progress (not in a
# confirmed state), and red otherwise.
sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'grey' if $p->state eq 'not responsible' || !$self->owns_problem( $p );
return 'green' if $p->is_fixed || $p->is_closed;
return 'green' if $p->is_closed;
return 'green' if $p->is_fixed;
return 'yellow' if $p->is_in_progress;
return 'red';
}
Expand Down

0 comments on commit 9c3e3de

Please sign in to comment.