aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2017-05-26 12:32:49 +0100
committerZarino Zappia <mail@zarino.co.uk>2017-06-09 13:38:35 +0100
commit831943b1320841f3b9383c1e493840f9f657744c (patch)
tree805f92fff42b24f4911eb76387f8f1127286b2ff /perllib
parent1b15964af653b66d755ce2bd20ece76b960a44d4 (diff)
[Oxfordshire] Custom pin images with icons
Oxfordshire map pins now have icons on, and some use different colours, to better communicate the status of reports. Fixes mysociety/fixmystreetforcouncils#170
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Oxfordshire.pm14
1 files changed, 11 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
index 3e262a700..7093e80bd 100644
--- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
@@ -106,12 +106,20 @@ sub reports_ordering {
sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'grey' unless $self->owns_problem( $p );
- return 'grey' if $p->state eq 'not responsible';
- return 'green' if $p->is_fixed || $p->is_closed;
- return 'red' if $p->state eq 'confirmed';
+ return 'grey' if $p->is_closed;
+ return 'green' if $p->is_fixed;
+ return 'yellow' if $p->state eq 'confirmed';
+ return 'orange'; # all the other `open_states` like "in progress"
+}
+
+sub pin_new_report_colour {
return 'yellow';
}
+sub path_to_pin_icons {
+ return '/cobrands/oxfordshire/images/';
+}
+
sub open311_config {
my ($self, $row, $h, $params) = @_;