39 lines
No EOL
1.3 KiB
Text
39 lines
No EOL
1.3 KiB
Text
<script type="module" src="/assets/scripts/components/select-pagination.js"></script>
|
|
<nav aria-label="Pagination" class="pagination flex-centered">
|
|
{% if pagination.href.previous %}
|
|
<a href="{{ pagination.href.previous }}" aria-label="Previous page">
|
|
{% tablericon "arrow-left" "Previous" %}
|
|
</a>
|
|
{% else %}
|
|
<span
|
|
class="disabled"
|
|
aria-label="Previous page (disabled)"
|
|
disabled>
|
|
{% tablericon "arrow-left" "Prevous" %}
|
|
</span>
|
|
{% endif %}
|
|
<select-pagination>
|
|
<select 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 | plus: 1 }}</span> of {{ pagination.links.size }}
|
|
</div>
|
|
</noscript>
|
|
</select-pagination>
|
|
{% if pagination.href.next %}
|
|
<a href="{{ pagination.href.next }}" aria-label="Next page">
|
|
{% tablericon "arrow-right" "Next" %}
|
|
</a>
|
|
{% else %}
|
|
<span
|
|
class="disabled"
|
|
aria-label="Next page (disabled)"
|
|
disabled>
|
|
{% tablericon "arrow-right" "Next" %}
|
|
</span>
|
|
{% endif %}
|
|
</nav> |