2019-09-24 11:30:38 +00:00
|
|
|
{% macro render_pagination(pagination) %}
|
2019-11-20 12:36:06 +00:00
|
|
|
<div class="ungleich-center-div">
|
2019-09-24 11:30:38 +00:00
|
|
|
<div class="pagination">
|
|
|
|
{% if pagination.has_prev %}
|
|
|
|
<a href="{{ pagination.prev|url }}">« Previous</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="disabled">« Previous</span>
|
2019-11-18 12:38:55 +00:00
|
|
|
{% endif %} |
|
2019-11-18 14:36:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% for page in range(1, pagination.pages + 1) %}
|
|
|
|
{% if page != pagination.page %}
|
2019-11-18 12:38:55 +00:00
|
|
|
<a href="{{ pagination.for_page(page)|url }}">{{ page }}</a> |
|
2019-11-18 14:36:27 +00:00
|
|
|
{% else %}
|
|
|
|
{{ pagination.page }} |
|
|
|
|
{% endif %}
|
2019-11-18 12:38:55 +00:00
|
|
|
{% endfor %}
|
2019-11-18 14:36:27 +00:00
|
|
|
|
2019-09-24 11:30:38 +00:00
|
|
|
{% if pagination.has_next %}
|
|
|
|
<a href="{{ pagination.next|url }}">Next »</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="disabled">Next »</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2019-11-20 12:36:06 +00:00
|
|
|
</div>
|
2019-09-24 11:30:38 +00:00
|
|
|
{% endmacro %}
|