mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Allow auto-pagination on profile page (#445)
This commit is contained in:
parent
ee3b51c28f
commit
10c7da96c7
1 changed files with 9 additions and 5 deletions
|
@ -103,11 +103,15 @@
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if page_obj.has_next %}
|
<div class="pagination">
|
||||||
<div class="pagination">
|
{% if page_obj.has_previous and not request.htmx %}
|
||||||
<a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
|
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
{% if page_obj.has_next %}
|
||||||
|
<a class="button" href=".?page={{ page_obj.next_page_number }}" hx-get=".?page={{ page_obj.next_page_number }}" hx-select=".left-column > *:not(.view-options)" hx-target=".pagination" hx-swap="outerHTML" {% if config_identity.infinite_scroll %}hx-trigger="revealed"{% endif %}>Next Page</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue