Show pagination stats in listing hero

This commit is contained in:
Jake Howard 2023-10-22 15:56:33 +01:00
parent 9a8166a39e
commit 5d7d84249b
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,12 @@
{{ block.super }}
{% endblock %}
{% block content_details %}
{{ block.super }}
{% if listing_pages.has_other_pages %}<p>Showing {{ listing_pages.start_index }}&mdash;{{ listing_pages.end_index }} of {{ listing_pages.paginator.count }}.</p>{% endif %}
{% endblock %}
{% block post_content %}
<section class="container">
{% for page in listing_pages %}

View File

@ -34,7 +34,9 @@
<h1 class="title is-spaced">{{ page.hero_title }}</h1>
{% if page.subtitle %}<h2 class="subtitle is-size-4">{{ page.subtitle|richtext }}</h2>{% endif %}
{% include "common/content-details.html" %}
{% block content_details %}
{% include "common/content-details.html" %}
{% endblock %}
</div>
<div class="column is-narrow dropdown-wrapper hero-buttons is-grouped">
{% block hero_buttons %}