mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
36 lines
1002 B
HTML
36 lines
1002 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
|
{{ render_pkggrid(packages) }}
|
|
|
|
<ul class="pagination mt-4">
|
|
<li class="page-item {% if not prev_url %}disabled{% endif %}">
|
|
<a class="page-link" {% if prev_url %}href="{{ prev_url }}"{% endif %}>«</a>
|
|
</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>
|
|
|
|
{% if topics %}
|
|
<h2 style="margin-top:2em;">More content from the forums</h2>
|
|
|
|
{% from "macros/topics.html" import render_topics %}
|
|
{{ render_topics(topics, current_user) }}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|