Implement basic paging

This commit is contained in:
Sascha Ißbrücker
2019-06-29 09:15:07 +02:00
parent 9eefd479c6
commit 0177660cf6
2 changed files with 21 additions and 1 deletions

View File

@@ -22,4 +22,13 @@
</li>
{% endfor %}
</ul>
<div class="pagination">
{% if bookmarks.has_next %}
<a href="?page={{ bookmarks.next_page_number }}">< Older</a>
{% endif %}
{% if bookmarks.has_previous %}
<a href="?page={{ bookmarks.previous_page_number }}">Newer ></a>
{% endif %}
</div>
{% endblock %}