pagination.html
HTML document, Unicode text, UTF-8 text
1<x-hbox id="pagination-options"> 2<x-hbox id="pagination"> 3{% if prev_page %} 4<a href="{{ modify_query(per_page=page_length, page=1) }}"> 5« 6</a> 7<a href="{{ modify_query(per_page=page_length, page=prev_page) }}"> 8‹ 9</a> 10{% endif %} 11<span>{{ page_number }}/{{ num_pages }}</span> 12{% if next_page %} 13<a href="{{ modify_query(per_page=page_length, page=next_page) }}"> 14› 15</a> 16<a href="{{ modify_query(per_page=page_length, page=num_pages) }}"> 17» 18</a> 19{% endif %} 20</x-hbox> 21<form> 22{% for key, value in request.args.items() %} 23{% if key not in ["page", "per_page"] %} 24<input type="hidden" name="{{ key }}" value="{{ value }}"> 25{% endif %} 26{% endfor %} 27<x-hbox> 28<label> 29Items per page: 30<input type="number" name="per_page" value="{{ page_length }}" min="1" max="256" style="font: var(--mono-font);"> 31</label> 32<button type="submit">Load</button> 33</x-hbox> 34</form> 35</x-hbox> 36