diff options
author | Struan Donald <struan@exo.org.uk> | 2018-06-12 17:46:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-07-03 15:55:52 +0100 |
commit | 1b7418e2aec2ce269fde49efcff8493e4e24ad7e (patch) | |
tree | 2761dc4196b1c5f306b4e498ee633a5e939f2d9b /perllib/FixMyStreet/App/Controller/Around.pm | |
parent | 04e49afc9a7c10405464c62b0cfd6f6c55b286ac (diff) |
Only display reports from last 6 months on around.
Add a checkbox to show older reports, plus if we get to the end of the new
reports then instead of a Next button show a "show older" button that will
reload the current page but with older reports also loaded. Wire it all up
into the pushState code as well.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index 8fed5c3aa..cc6f8387c 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -253,6 +253,7 @@ sub map_features : Private { $c->forward( '/reports/stash_report_filter_status' ); $c->forward( '/reports/stash_report_sort', [ 'created-desc' ]); + $c->stash->{show_old_reports} = $c->get_param('show_old_reports'); return if $c->get_param('js'); # JS will request the same (or more) data client side |