From e58d6f2c4d189ed7f3cf4f060052065332034ba6 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Wed, 20 Nov 2024 14:10:52 +0000 Subject: [PATCH 1/2] [Shropshire] Enable Street Manager --- templates/web/shropshire/footer_extra_js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web/shropshire/footer_extra_js.html b/templates/web/shropshire/footer_extra_js.html index 88fc006e768..12a42c0d245 100644 --- a/templates/web/shropshire/footer_extra_js.html +++ b/templates/web/shropshire/footer_extra_js.html @@ -1 +1 @@ -[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 %] +[% PROCESS 'footer_extra_js_base.html' highways=1 validation=1 roadworks=1 %] From 46a50afd3d8ad47926304d492fe89f34a030325c Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Wed, 20 Nov 2024 14:18:22 +0000 Subject: [PATCH 2/2] [Shropshire] Custom pin colours Not confirmed yet, just for comment. --- perllib/FixMyStreet/Cobrand/Shropshire.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/perllib/FixMyStreet/Cobrand/Shropshire.pm b/perllib/FixMyStreet/Cobrand/Shropshire.pm index 074503837bb..908f60a7a31 100644 --- a/perllib/FixMyStreet/Cobrand/Shropshire.pm +++ b/perllib/FixMyStreet/Cobrand/Shropshire.pm @@ -199,4 +199,24 @@ sub dashboard_export_problems_add_columns { }); } +=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'; +} + +sub path_to_pin_icons { + return '/cobrands/oxfordshire/images/'; +} + + 1;