Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shropshire] Amendments from workshop #5265

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
20 changes: 20 additions & 0 deletions perllib/FixMyStreet/Cobrand/Shropshire.pm
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,24 @@
});
}

=head2 pin_colour

Green for completed or closed, yellow for open,
blue for anything else (in progress, action scheduled, etc)

=cut

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

return 'green' if $p->is_fixed || $p->is_closed;
return 'yellow' if $p->state eq 'confirmed';
return 'defects';

Check warning on line 214 in perllib/FixMyStreet/Cobrand/Shropshire.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/Shropshire.pm#L214

Added line #L214 was not covered by tests
}

sub path_to_pin_icons {
return '/cobrands/oxfordshire/images/';
}


1;
2 changes: 1 addition & 1 deletion templates/web/shropshire/footer_extra_js.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 %]
[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 roadworks=1 %]
Loading