diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2017-05-26 12:30:54 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2017-06-09 13:38:33 +0100 |
commit | 1cd7ae49a7dca3f06fff92a8b5eb3b1e9dc6f3e1 (patch) | |
tree | b3c32bf9cb527896457b6fb66e1109b5cdfdd992 /perllib | |
parent | 6161ebc5ecd9893133e7d57a8f37f9ed6e47d66d (diff) |
Allow cobrands to define pin colour for new reports
Previously, a green marker would be used for reports as they were being
created. Now, cobrands can override `pin_new_report_colour` to show a
different pin image when users are creating a new report.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index 195978845..4a886204c 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -945,6 +945,15 @@ sub pin_colour { return $p->is_fixed ? 'green' : 'red'; } +=head2 pin_new_report_colour + +Returns the colour of pin to be used for a new report. + +=cut +sub pin_new_report_colour { + return 'green'; +} + =head2 path_to_pin_icons Used to override the path for the pin icons if you want to add custom pin icons |