mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 15:40:12 +01:00
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
<nav class="commander-pagination" role="navigation" aria-label="Commander pagination" {% if pagination_position == 'bottom' %}data-bottom-controls="1"{% endif %}>
|
|
<div class="pagination-group">
|
|
<a
|
|
class="btn ghost commander-page-btn {% if not has_prev %}disabled{% endif %}"
|
|
{% if has_prev %}
|
|
href="{{ prev_url }}"
|
|
hx-get="{{ prev_url }}"
|
|
hx-target="#commander-results"
|
|
hx-push-url="true"
|
|
data-scroll-top-on-swap="1"
|
|
{% else %}
|
|
aria-disabled="true"
|
|
tabindex="-1"
|
|
{% endif %}
|
|
>
|
|
← Previous
|
|
</a>
|
|
<span class="commander-pagination-status" aria-live="polite">
|
|
Page {{ page }} of {{ page_count }}
|
|
</span>
|
|
<a
|
|
class="btn ghost commander-page-btn {% if not has_next %}disabled{% endif %}"
|
|
{% if has_next %}
|
|
href="{{ next_url }}"
|
|
hx-get="{{ next_url }}"
|
|
hx-target="#commander-results"
|
|
hx-push-url="true"
|
|
data-scroll-top-on-swap="1"
|
|
{% else %}
|
|
aria-disabled="true"
|
|
tabindex="-1"
|
|
{% endif %}
|
|
>
|
|
Next →
|
|
</a>
|
|
</div>
|
|
</nav>
|