diff options
author | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
---|---|---|
committer | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
commit | f60e9ccd5b046101903a79bf6afa0cf87fdd956c (patch) | |
tree | db29d0f55a1bc3347b63341551fa05308554101d /templates/macros/pagination.html |
init
Diffstat (limited to 'templates/macros/pagination.html')
-rw-r--r-- | templates/macros/pagination.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html new file mode 100644 index 0000000..077cc5a --- /dev/null +++ b/templates/macros/pagination.html @@ -0,0 +1,15 @@ +{% macro render_pagination(pagination) %} + <div class="pagination"> + {% if pagination.has_prev %} + <a href="{{ pagination.prev|url }}">« Previous</a> + {% else %} + <span class="disabled">« Previous</span> + {% endif %} + | {{ pagination.page }} | + {% if pagination.has_next %} + <a href="{{ pagination.next|url }}">Next »</a> + {% else %} + <span class="disabled">Next »</span> + {% endif %} + </div> +{% endmacro %} |