aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Alert.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-12 10:08:49 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-12 10:08:49 +0100
commit64f98502ae9d9c60973862f10ddae8fcce363f9d (patch)
tree77566106652a5d7c13333925e1921cdcd9092dcf /perllib/FixMyStreet/App/Controller/Alert.pm
parent2d1e3699cdd1e4d7cefa348b338c92de2d90facb (diff)
add recent local problems photos to alert list page
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Alert.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm
index 28b338563..f88e57d1a 100644
--- a/perllib/FixMyStreet/App/Controller/Alert.pm
+++ b/perllib/FixMyStreet/App/Controller/Alert.pm
@@ -122,6 +122,12 @@ sub list : Path('list') : Args(0) {
$dist = $dist / 10.0;
$c->stash->{population_radius} = $dist;
+
+ $c->stash->{photos} = $c->cobrand->recent_photos(
+ 5,
+ $c->stash->{latitude},
+ $c->stash->{longitude}, $dist
+ );
#
# my $checked = '';
# $checked = ' checked' if $q->param('feed') && $q->param('feed') eq "local:$lat:$lon";
@@ -344,7 +350,7 @@ sub subscribe_email : Private {
=head2 confirm
-Confirm signup to an alert
+Confirm signup to an alert. Forwarded here from Tokens.
=cut