diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-10-05 11:42:20 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-10-07 14:57:12 +0100 |
commit | ef0c07ba692b8046fe865d9849104324d4f40977 (patch) | |
tree | 0bf10401c1465c84b7a32d263b4dbe13710451d4 /perllib/FixMyStreet/App/Controller/My.pm | |
parent | 300b6d5942c4c8726febd9681b47e2134e8efbf0 (diff) |
Add state/category filters to base cobrand.
This removes the on map/nearby tabs, replacing them with one combined
list. The styling is moved to the base, so that it is used on mobile
too. A closed option is added to the existing dropdown, and the
base/fixmystreet my templates are also combined. Fixes #1141.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 9db9386f5..3c4ce2cf7 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -31,7 +31,7 @@ sub my : Path : Args(0) { $c->forward( '/reports/stash_report_filter_status' ); my $pins = []; - my $problems = {}; + my $problems = []; my $states = $c->stash->{filter_problem_states}; my $params = { @@ -60,9 +60,7 @@ sub my : Path : Args(0) { id => $problem->id, title => $problem->title, }; - my $state = $problem->is_fixed ? 'fixed' : $problem->is_closed ? 'closed' : 'confirmed'; - push @{ $problems->{$state} }, $problem; - push @{ $problems->{all} }, $problem; + push @$problems, $problem; } $c->stash->{problems_pager} = $rs->pager; $c->stash->{problems} = $problems; |