Web platform for sharing free data for ML and research

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 • 1.19 kiB
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
<div>
23
{% for key, value in request.args.items() %}
24
{% if key not in ["page", "per_page"] %}
25
<input type="hidden" name="{{ key }}" value="{{ value }}">
26
{% endif %}
27
{% endfor %}
28
</div>
29
<label>
30
Items per page:
31
<input type="number" name="per_page" value="{{ page_length }}" min="1" max="256" style="font: var(--mono-font);">
32
</label>
33
<button type="submit">Load</button>
34
</form>
35
</x-hbox>
36