0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Move pagination controls into base report

This commit is contained in:
Matt Westcott 2020-05-01 16:46:31 +01:00 committed by Matt Westcott
parent 07ebbc24a4
commit e6cd2b9483
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,6 @@
{% block listing %}
{% include "wagtailadmin/reports/listing/_list_page_report.html" %}
{% endblock %}
{% paginate pages base_url=request.path %}
{% else %}
{% block no_results %}
<p>{% trans "No pages match this report's criteria." %}</p>

View File

@ -34,6 +34,9 @@
<div class="report__results">
{% block results %}
{% endblock %}
{% if page_obj %}
{% paginate page_obj base_url=request.path %}
{% endif %}
</div>
{% if filters %}
<div class="report__filters">