We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a16b67 commit 8f0ac6cCopy full SHA for 8f0ac6c
perllib/FixMyStreet/Cobrand/Shropshire.pm
@@ -205,4 +205,21 @@ sub dashboard_export_problems_add_columns {
205
});
206
}
207
208
+=head2 pin_colour
209
+
210
+Green for completed or closed, yellow for open,
211
+blue for anything else (in progress, action scheduled, etc)
212
213
+=cut
214
215
+sub pin_colour {
216
+ my ( $self, $p ) = @_;
217
218
+ return 'green-tick' if $p->is_fixed || $p->is_closed;
219
+ return 'yellow-cone' if $p->state eq 'confirmed';
220
+ return 'blue-work';
221
+}
222
223
+sub path_to_pin_icons { '/i/pins/whole-shadow-cone-spot/' }
224
225
1;
0 commit comments