fix: properly display pagination w/out javascript

This commit is contained in:
Cory Dransfeldt 2024-06-14 16:27:11 -07:00
parent 876d2a921f
commit 22692dd9e1
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -13,14 +13,14 @@
</span>
{% endif %}
<select-pagination>
<select aria-label="Page selection">
<select class="client-side" aria-label="Page selection">
{% for pageEntry in pagination.pages %}
<option value="{{ forloop.index | minus: 1 }}">{{ forloop.index }} of {{ pagination.links.size }}</option>
{% endfor %}
</select>
<noscript>
<div class="text-centered">
<span aria-current="page">{{ pagination.pageNumber }}</span> of {{ pagination.links.size }}
<span aria-current="page">{{ pagination.pageNumber | plus: 1 }}</span> of {{ pagination.links.size }}
</div>
</noscript>
</select-pagination>