mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Add pagination styling
This commit is contained in:
parent
0a969e597b
commit
a21a5c24d8
@ -8,10 +8,21 @@
|
|||||||
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
||||||
{{ render_pkggrid(packages) }}
|
{{ render_pkggrid(packages) }}
|
||||||
|
|
||||||
<ul class="btnset linedbuttonset">
|
<ul class="pagination mt-4">
|
||||||
{% if prev_url %}<li><a href="{{ prev_url }}">Previous</a></li>{% endif %}
|
<li class="page-item {% if not prev_url %}disabled{% endif %}">
|
||||||
<li>{{ page }} / {{ page_max }}</li>
|
<a class="page-link" {% if prev_url %}href="{{ prev_url }}"{% endif %}>«</a>
|
||||||
{% if next_url %}<li><a href="{{ next_url }}">Next</a></li> {% endif %}
|
</li>
|
||||||
|
{% for n in range(1, page_max+1) %}
|
||||||
|
<li class="page-item {% if n == page %}active{% endif %}">
|
||||||
|
<a class="page-link"
|
||||||
|
href="{{ url_for('packages_page', type=type, q=query, page=n) }}">
|
||||||
|
{{ n }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
<li class="page-item {% if not next_url %}disabled{% endif %}">
|
||||||
|
<a class="page-link" {% if next_url %}href="{{ next_url }}"{% endif %}>»</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% if topics %}
|
{% if topics %}
|
||||||
|
Loading…
Reference in New Issue
Block a user