aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm14
2 files changed, 14 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 24dececac..081256fe2 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -199,7 +199,7 @@ sub generate_map_tags : Private {
? [ {
latitude => $problem->latitude,
longitude => $problem->longitude,
- colour => $c->cobrand->moniker eq 'zurich'? $c->cobrand->pin_colour($problem) : 'yellow',
+ colour => $c->cobrand->pin_colour($problem, 'report'),
type => 'big',
} ]
: [],
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 832a6bb5c..2de3eae5f 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -731,10 +731,22 @@ Returns the colour of pin to be used for a particular report
sub pin_colour {
my ( $self, $p, $context ) = @_;
#return 'green' if time() - $p->confirmed->epoch < 7 * 24 * 60 * 60;
- return 'yellow' if $context eq 'around' || $context eq 'reports';
+ return 'yellow' if $context eq 'around' || $context eq 'reports' || $context eq 'report';
return $p->is_fixed ? 'green' : 'red';
}
+=head2 path_to_pin_icons
+
+Used to override the path for the pin icons if you want to add custom pin icons
+for your cobrand.
+
+=cut
+
+sub path_to_pin_icons {
+ return '/i/';
+}
+
+
=head2 tweak_all_reports_map
Used to tweak the display settings of the map on the all reports pages.