By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 pagination.html

View raw Download
text/html • 856 B
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="?page=1">
5
«
6
</a>
7
<a href="?page={{ prev_page }}">
8
9
</a>
10
{% endif %}
11
<span>{{ page_number }}/{{ num_pages }}</span>
12
{% if next_page %}
13
<a href="?page={{ next_page }}">
14
15
</a>
16
<a href="?page={{ last_page }}">
17
»
18
</a>
19
{% endif %}
20
</x-hbox>
21
<form>
22
<x-hbox>
23
<label>
24
Items per page:
25
<input type="number" name="per_page" value="{{ page_length }}" min="1" max="256" style="font: var(--mono-font);">
26
</label>
27
<button type="submit">Load</button>
28
</x-hbox>
29
</form>
30
</x-hbox>
31