aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2017-05-30 11:50:28 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-06-10 09:54:28 +0100
commitce350cc13134bdbbbf50af2689fbc63a04b3773b (patch)
tree89df9b09e04801f1e35b1322b7e7473cd1378835 /perllib/FixMyStreet/App/Controller/Around.pm
parenteb8d1b6f0aed5773c08d76041bc5aec57cbc4a31 (diff)
[Oxfordshire] Show problem state in marker tooltip
Add hook so that cobrands can change pin hover title.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 1fe35d0a3..bd9e80dc7 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -314,9 +314,10 @@ sub ajax : Path('/ajax') {
# Here we might have a DB::Problem or a DB::Nearby, we always want the problem.
my $p = (ref $_ eq 'FixMyStreet::App::Model::DB::Nearby') ? $_->problem : $_;
my $colour = $c->cobrand->pin_colour( $p, 'around' );
+ my $title = $c->cobrand->call_hook(pin_hover_title => $p, $p->title_safe) || $p->title_safe;
[ $p->latitude, $p->longitude,
$colour,
- $p->id, $p->title_safe
+ $p->id, $title
]
} @$on_map_all, @$nearby;