aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-14 18:06:32 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-14 18:06:32 +0100
commit4268024f74085b25a985fdfde431cd9b17e4cffb (patch)
tree56a7b69794c15e9311749b734e0c6841e81df151 /perllib/FixMyStreet/App/Controller
parentdd16641400e49f94f480db8c3e62e0760065e6d8 (diff)
add council name to dashboard
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Dashboard.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm
index 6a2b1c680..d6c037f5d 100644
--- a/perllib/FixMyStreet/App/Controller/Dashboard.pm
+++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm
@@ -46,6 +46,7 @@ sub example : Local : Args(0) {
} else {
$c->stash->{problems} = $j->{counts_some};
}
+ $c->stash->{council} = $j->{council};
$c->stash->{children} = $j->{wards};
$c->stash->{category_options} = $j->{category_options};
if ( lc($c->stash->{q_state}) eq 'all' or !$c->stash->{q_state} ) {
@@ -91,6 +92,9 @@ sub index : Path : Args(0) {
# Set up the data for the dropdowns
+ my $council_detail = mySociety::MaPit::call('area', $council );
+ $c->stash->{council} = $council_detail;
+
my $children = mySociety::MaPit::call('area/children', $council,
type => $mySociety::VotingArea::council_child_types,
);