webseite/templates/macros/pagination.html

16 lines
475 B
HTML
Raw Permalink Normal View History

2018-02-25 00:06:19 +01:00
{% macro render_pagination(pagination) %}
2019-02-12 17:45:44 +01:00
<div class="pagination">
2018-02-25 00:06:19 +01:00
{% if pagination.has_prev %}
2019-02-12 17:45:44 +01:00
<a href="{{ pagination.prev|url }}">&laquo; Previous</a>
2018-02-25 00:06:19 +01:00
{% else %}
2019-02-12 17:45:44 +01:00
<span class="disabled">&laquo; Previous</span>
2018-02-25 00:06:19 +01:00
{% endif %}
2019-02-12 17:45:44 +01:00
| {{ pagination.page }} |
2018-02-25 00:06:19 +01:00
{% if pagination.has_next %}
2019-02-12 17:45:44 +01:00
<a href="{{ pagination.next|url }}">Next &raquo;</a>
2018-02-25 00:06:19 +01:00
{% else %}
2019-02-12 17:45:44 +01:00
<span class="disabled">Next &raquo;</span>
2018-02-25 00:06:19 +01:00
{% endif %}
</div>
{% endmacro %}