mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
feat(web): launch commander browser with deck builder CTA
This commit is contained in:
parent
6e9ba244c9
commit
8e57588f40
27 changed files with 1960 additions and 45 deletions
37
code/web/templates/commanders/pagination_controls.html
Normal file
37
code/web/templates/commanders/pagination_controls.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue