Yu-Gi-Oh! Deck Building and Card Inventory Management web interface written in Common Lisp, utilizing HTMX.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

28 líneas
1.2KB

  1. {% if pages %}
  2. <nav class="pagination is-centered{% if class %} {{ class }}{% endif %}" role="navigation" aria-label="pagination">
  3. <ul class="pagination-list">
  4. <li></li><!-- What is going on here?? -->
  5. {% if not class %}
  6. <li><a class="pagination-link" aria-label="Go To Beginning"
  7. hx-include="{{ hx-include }}"
  8. hx-post="{{ url }}?direction={{ direction }}&offset=0&sort-by={{ sort-by }}"
  9. hx-target="{{ hx-target }}">&laquo;</a></li>
  10. {% endif %}
  11. {% for page in pages %}
  12. <li>
  13. <a class="pagination-link{% if offset == page.offset %} is-current{% endif %}" aria-label="Go To Page {{ page.id | add: 1 }}"
  14. hx-include="{{ hx-include }}"
  15. hx-post="{{ url }}?direction={{ direction }}&offset={{ page.offset }}&sort-by={{ sort-by }}"
  16. hx-target="{{ hx-target }}">{{ page.id | add: 1 }}</a>
  17. </li>
  18. {% endfor %}
  19. {% if not class %}
  20. <li><a class="pagination-link" aria-label="Go To End"
  21. hx-include="{{ hx-include }}"
  22. hx-post="{{ url }}?direction={{ direction }}&offset={{ last-page.offset }}&sort-by={{ sort-by }}"
  23. hx-target="{{ hx-target }}">&raquo;</a></li>
  24. {% endif %}
  25. </ul>
  26. </nav>
  27. {% endif %}