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?v={% appVersion %}"></script>
|
|
<nav aria-label="Pagination" class="pagination">
|
|
{%- 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 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>
|
|
<p>
|
|
<span aria-current="page">{{ pagination.pageNumber | plus: 1 }}</span> of {{ pagination.links.size }}
|
|
</p>
|
|
</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> |