Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions perllib/FixMyStreet/Cobrand/Northumberland.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ sub report_age {
};
}

=item * Pins are green if closed/fixed, red if confirmed, orange otherwise
=item * Pins are grey cross for closed; green tick for fixed; yellow cone for open; orange at work for other open states.

=cut

sub pin_colour {
my ( $self, $p, $context ) = @_;
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"
return 'grey-cross' if $p->is_closed;
return 'green-tick' if $p->is_fixed;
return 'yellow-cone' if $p->state eq 'confirmed';
return 'orange-work'; # all the other `open_states` like "in progress"
}

sub has_aerial_maps { 'tilma.mysociety.org/mapcache/gmaps/northumberlandaerial@{grid}' }
Expand Down