aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-28 16:25:04 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-28 16:25:04 +0100
commit25edf88cf3cfae0320b3b8cefca39464f85d4a91 (patch)
tree7869c053ae741fca94d7b05f62830a826845c59e /perllib/FixMyStreet/App/Controller
parent85a3050d6e5e0f7f0bd9d3c827533f5d84d0b396 (diff)
List updates on Your Reports (for #127), and a map too (#124).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index 8cb807e09..74f7a6d52 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -25,6 +25,9 @@ sub my : Path : Args(0) {
$c->detach( '/auth/redirect' ) unless $c->user;
+ # Even though front end doesn't yet have it, have it on this page, it's better!
+ FixMyStreet::Map::set_map_class( 'FMS' );
+
my $pins = [];
my $problems = {};
foreach my $problem ( $c->user->problems ) {
@@ -39,6 +42,10 @@ sub my : Path : Args(0) {
}
$c->stash->{problems} = $problems;
+ my @updates = $c->user->comments->search( {
+ state => 'confirmed',
+ } )->all;
+ $c->stash->{updates} = \@updates;
FixMyStreet::Map::display_map(
$c,