diff options
author | Struan Donald <struan@exo.org.uk> | 2012-12-21 16:00:33 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-12-21 16:00:33 +0000 |
commit | 58367bc7d95c365401a9f1fb94bf7461c64771bc (patch) | |
tree | fd918bac7b41c764e855e7c00d91f4d86cc17cf4 /perllib/FixMyStreet/Cobrand/SeeSomething.pm | |
parent | 1c0421f808297f0b93a391c5b082a94ff49cbc24 (diff) |
show report area on reporting screen
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/SeeSomething.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/SeeSomething.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/SeeSomething.pm b/perllib/FixMyStreet/Cobrand/SeeSomething.pm index 52f96e110..2b32d262e 100644 --- a/perllib/FixMyStreet/Cobrand/SeeSomething.pm +++ b/perllib/FixMyStreet/Cobrand/SeeSomething.pm @@ -94,6 +94,15 @@ sub admin_stats { my %filters = (); + my %councils = + map { + $c->stash->{council_details}->{$_}->{name} =~ s/(?:Borough|City) Council//; + $_ => $c->stash->{council_details}->{$_} + } + @{ $self->council_id }; + + $c->stash->{council_details} = \%councils; + if ( !$c->user_exists || !grep { $_ == $c->user->from_council } @{ $self->council_id } ) { $c->detach( '/page_error_404_not_found' ); } @@ -122,7 +131,7 @@ sub admin_stats { }, { columns => [ qw( - id detail service category subcategory confirmed + id detail service category subcategory council confirmed ) ], order_by => { -desc=> [ 'confirmed' ] }, rows => 20, |