mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
Merge pull request #2696 from bookwyrm-social/chronological-pagination
Only use chronological pagination sometimes
This commit is contained in:
commit
1612217eaa
4 changed files with 14 additions and 6 deletions
|
@ -23,7 +23,7 @@
|
|||
{% block panel %}{% endblock %}
|
||||
|
||||
{% 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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,11 @@
|
|||
{% endif %}>
|
||||
|
||||
<span class="icon icon-arrow-left" aria-hidden="true"></span>
|
||||
{% trans "Older" %}
|
||||
{% if mode == "chronological" %}
|
||||
{% trans "Newer" %}
|
||||
{% else %}
|
||||
{% trans "Previous" %}
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
<a
|
||||
|
@ -20,7 +24,11 @@
|
|||
aria-hidden="true"
|
||||
{% endif %}>
|
||||
|
||||
{% trans "Newer" %}
|
||||
{% if mode == "chronological" %}
|
||||
{% trans "Older" %}
|
||||
{% else %}
|
||||
{% trans "Next" %}
|
||||
{% endif %}
|
||||
<span class="icon icon-arrow-right" aria-hidden="true"></span>
|
||||
</a>
|
||||
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'snippets/pagination.html' with page=activities path=path %}
|
||||
{% include 'snippets/pagination.html' with page=activities path=path mode="chronological" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
{% trans "Back" %}
|
||||
</span>
|
||||
</summary>
|
||||
|
||||
|
||||
<div class="dropdown-menu">
|
||||
<ul
|
||||
class="dropdown-content"
|
||||
|
@ -130,7 +130,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'snippets/pagination.html' with page=activities path=user.local_path anchor="#feed" %}
|
||||
{% include 'snippets/pagination.html' with page=activities path=user.local_path anchor="#feed" mode="chronological" %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue