Only use chronological pagination sometimes

The timeline uses chronological buttons, but other paginated pages do
not (by default). This also reversed the chronology.
This commit is contained in:
Mouse Reeve 2023-02-25 15:56:03 -08:00
parent 233cf809dd
commit 99fc2b7a36
2 changed files with 11 additions and 3 deletions

View file

@ -23,7 +23,7 @@
{% block panel %}{% endblock %} {% block panel %}{% endblock %}
{% if activities %} {% if activities %}
{% include 'snippets/pagination.html' with page=activities path=path anchor="#feed" %} {% include 'snippets/pagination.html' with page=activities path=path anchor="#feed" mode="chronological" %}
{% endif %} {% endif %}
</div> </div>
</div> </div>

View file

@ -9,7 +9,11 @@
{% endif %}> {% endif %}>
<span class="icon icon-arrow-left" aria-hidden="true"></span> <span class="icon icon-arrow-left" aria-hidden="true"></span>
{% trans "Older" %} {% if mode == "chronological" %}
{% trans "Newer" %}
{% else %}
{% trans "Previous" %}
{% endif %}
</a> </a>
<a <a
@ -20,7 +24,11 @@
aria-hidden="true" aria-hidden="true"
{% endif %}> {% endif %}>
{% trans "Newer" %} {% if mode == "chronological" %}
{% trans "Older" %}
{% else %}
{% trans "Next" %}
{% endif %}
<span class="icon icon-arrow-right" aria-hidden="true"></span> <span class="icon icon-arrow-right" aria-hidden="true"></span>
</a> </a>