summaryrefslogtreecommitdiffstats
path: root/templates/_pagination.html
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-10 05:08:36 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-10 05:08:36 +0100
commit1ec270de4390f215f874e8fad23736ce978c1bbd (patch)
treef56ebd30ec7648f785b558e499148d424bc55147 /templates/_pagination.html
parent915c05c05a5b510d53042944582dc62c7d3f28d1 (diff)
downloadpadlite-teams-1ec270de4390f215f874e8fad23736ce978c1bbd.tar.gz
padlite-teams-1ec270de4390f215f874e8fad23736ce978c1bbd.tar.bz2
padlite-teams-1ec270de4390f215f874e8fad23736ce978c1bbd.zip
Use sqlalchemy, flask-migrate, flask-login and flask-script
No peewee anymore. All dependencies are available as debian packages now.
Diffstat (limited to 'templates/_pagination.html')
-rw-r--r--templates/_pagination.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_pagination.html b/templates/_pagination.html
index f53df57..a8d1114 100644
--- a/templates/_pagination.html
+++ b/templates/_pagination.html
@@ -1,7 +1,7 @@
{% macro render_pagination(pagination) %}
<ul class="pagination" style="margin-top: 5px; margin-bottom: 0; padding: 0">
{% if pagination.has_prev %}
- <li><a href="{{ url_for_other_page(pagination.page - 1) }}">&laquo;</a></li>
+ <li><a href="{{ url_for_other_page(pagination.prev_num) }}">&laquo;</a></li>
{% else %}
<li class="disabled"><a href="#">&laquo;</a></li>
{% endif %}
@@ -13,13 +13,13 @@
{% else %}
<li class="active"><a href="#">{{ page }}</a></li>
{% endif %}
- {% else %}
+ {% else %}
<li class="disabled"><a href="#">…</a></li>
{% endif %}
{%- endfor %}
{% if pagination.has_next %}
- <li><a href="{{ url_for_other_page(pagination.page + 1) }}">&raquo;</a></li>
+ <li><a href="{{ url_for_other_page(pagination.next_num) }}">&raquo;</a></li>
{% else %}
<li class="disabled"><a href="#">&raquo;</a></li>
{% endif %}