diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-02-27 23:44:18 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-02-28 00:09:29 +0100 |
commit | 6150ebc0362118789c8f3d7b57d93f68dc1cd62d (patch) | |
tree | e2d868d869a8254b96e6ecec95e142cd655ab97c /hyperkitty/templates | |
parent | 07c1a4a2b4211c1975f9d641401636a8cbc35f9c (diff) | |
download | hyperkitty-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.html | 20 |
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 }}">← Newer</a> + {% if pager.has_previous %} + <li> + <a href="?page={{ pager.previous_page_number }}"> + {% else %} + <li class="disabled"> + <a href="#"> + {% endif %} + ← Newer</a> </li> - <li{% if not pager.has_next %} class="disabled"{% endif %}> - <a href="?page={{ pager.next_page_number }}">Older →</a> + {% if pager.has_next %} + <li> + <a href="?page={{ pager.next_page_number }}"> + {% else %} + <li class="disabled"> + <a href="#"> + {% endif %} + Older →</a> </li> </ul> |