Add pager to property page

This commit is contained in:
Edward Betts 2019-12-18 18:49:15 +00:00
parent 19c6d3b81c
commit 8e606499c9
2 changed files with 19 additions and 4 deletions

View file

@ -1,3 +1,4 @@
{% from "macro.html" import render_pagination %}
{% extends "base.html" %}
{% block title %}{{ label }}{% endblock %}
@ -16,7 +17,9 @@
{% endif %}
</p>
<p>Total: {{ hits | length }}</p>
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>
{{ render_pagination(pager) }}
<ul>
{% for hit in hits %}
@ -31,6 +34,9 @@
</li>
{% endfor %}
</ul>
{{ render_pagination(pager) }}
</div>
{% endblock %}