aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm5
-rw-r--r--templates/web/zurich/admin/index-sdm.html3
2 files changed, 6 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 366a1ff68..4091bf4b0 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -236,12 +236,15 @@ sub admin {
}, {
order_by => 'created desc'
} );
+
+ my $page = $c->req->params->{p} || 1;
$c->stash->{reports_published} = $c->cobrand->problems->search( {
state => 'fixed - council',
bodies_str => $body->parent->id,
}, {
order_by => 'created desc'
- } );
+ } )->page( $page );
+ $c->stash->{pager} = $c->stash->{reports_published}->pager;
}
}
diff --git a/templates/web/zurich/admin/index-sdm.html b/templates/web/zurich/admin/index-sdm.html
index 4e4009c16..9fa1b7714 100644
--- a/templates/web/zurich/admin/index-sdm.html
+++ b/templates/web/zurich/admin/index-sdm.html
@@ -7,8 +7,9 @@
<h2>[% loc('Reports awaiting approval') %]</h2>
[% INCLUDE list, problems = reports_unpublished.all, no_edit = 1 %]
-<h2>[% loc('Reports published') %]</h2>
+<h2 id="alle">[% loc('Reports published') %]</h2>
[% INCLUDE list, problems = reports_published.all, no_edit = 1 %]
+[% INCLUDE 'pagination.html', admin = 1, param = 'p', hash = 'alle' %]
[% INCLUDE 'admin/footer.html' %]