mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-29 06:42:04 +00:00
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:
parent
233cf809dd
commit
99fc2b7a36
2 changed files with 11 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue