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 }} {{ block.super }}
{% endblock %} {% 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 %} {% block post_content %}
<section class="container"> <section class="container">
{% for page in listing_pages %} {% for page in listing_pages %}

View file

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