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 /t/map | |
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 't/map')
-rw-r--r-- | t/map/tilma/original.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/map/tilma/original.t b/t/map/tilma/original.t index e89251285..42cbbd9f2 100644 --- a/t/map/tilma/original.t +++ b/t/map/tilma/original.t @@ -91,6 +91,7 @@ for my $test ( subtest "pin colour for state $test->{state}" => sub { $report->state($test->{state}); $report->update; + $c->stash->{report_age_field} = 'lastupdate'; my ( $on_map, $nearby, $dist ) = FixMyStreet::Map::map_features($c, bbox => "0,0,0,0"); |