summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-27 23:44:18 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-28 00:09:29 +0100
commit6150ebc0362118789c8f3d7b57d93f68dc1cd62d (patch)
treee2d868d869a8254b96e6ecec95e142cd655ab97c /hyperkitty/templates
parent07c1a4a2b4211c1975f9d641401636a8cbc35f9c (diff)
downloadhyperkitty-6150ebc0362118789c8f3d7b57d93f68dc1cd62d.tar.gz
hyperkitty-6150ebc0362118789c8f3d7b57d93f68dc1cd62d.tar.xz
hyperkitty-6150ebc0362118789c8f3d7b57d93f68dc1cd62d.zip
More Django 1.5 compatibility fixes
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/paginator.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/hyperkitty/templates/paginator.html b/hyperkitty/templates/paginator.html
index 1b3ad90..a7559ec 100644
--- a/hyperkitty/templates/paginator.html
+++ b/hyperkitty/templates/paginator.html
@@ -1,11 +1,23 @@
{% load i18n %}
<ul class="pager">
- <li{% if not pager.has_previous %} class="disabled"{% endif %}>
- <a href="?page={{ pager.previous_page_number }}">&larr; Newer</a>
+ {% if pager.has_previous %}
+ <li>
+ <a href="?page={{ pager.previous_page_number }}">
+ {% else %}
+ <li class="disabled">
+ <a href="#">
+ {% endif %}
+ &larr; Newer</a>
</li>
- <li{% if not pager.has_next %} class="disabled"{% endif %}>
- <a href="?page={{ pager.next_page_number }}">Older &rarr;</a>
+ {% if pager.has_next %}
+ <li>
+ <a href="?page={{ pager.next_page_number }}">
+ {% else %}
+ <li class="disabled">
+ <a href="#">
+ {% endif %}
+ Older &rarr;</a>
</li>
</ul>