fix paging

This commit is contained in:
Daniel Bulant 2026-03-14 19:45:55 +01:00
parent 23eb7eef89
commit cc941860c8
No known key found for this signature in database

View file

@ -21,10 +21,10 @@
<div>
{% if page > 1 %}
<a href="/measurements?page={{page+1}}" hx-get="/measurements?page={{page+1}}&htmx" hx-target="main" class="btn btn-link">Previous page</a>
<a href="/measurements?page={{page-1}}" hx-get="/measurements?page={{page-1}}&htmx" hx-target="main" class="btn btn-link">Previous page</a>
{% endif %}
{% if has_next_page %}
<a href="/measurements?page={{page-1}}" hx-get="/measurements?page={{page-1}}&htmx" hx-target="main" class="btn btn-link">Next page</a>
<a href="/measurements?page={{page+1}}" hx-get="/measurements?page={{page+1}}&htmx" hx-target="main" class="btn btn-link">Next page</a>
{% endif %}
<a href="/" class="btn btn-link">View statistics</a>