summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/paginator.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-06-06 20:07:06 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-06-06 20:07:06 +0200
commit28ebf918ca25ba170bb8ad0ac3e2c740d34f9301 (patch)
tree6808590c2f6ba39b1e48a789a9d790e9b0968d5c /hyperkitty/templates/paginator.html
parentc0047ae6ec63a5ed745f733efca51ce332a296da (diff)
downloadhyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.tar.gz
hyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.tar.xz
hyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.zip
Greatly improve the pager
Diffstat (limited to 'hyperkitty/templates/paginator.html')
-rw-r--r--hyperkitty/templates/paginator.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/hyperkitty/templates/paginator.html b/hyperkitty/templates/paginator.html
index 0b4e0d7..efbce86 100644
--- a/hyperkitty/templates/paginator.html
+++ b/hyperkitty/templates/paginator.html
@@ -10,12 +10,17 @@
<li class="disabled">
<a href="#">
{% endif %}
- &larr; Newer</a>
+ &larr; {% if notbydate %}Previous{% else %}Newer{% endif %}
+ </a>
</li>
{% for pagenum in pager.page_range %}
<li{% if pagenum == pager.number %} class="active"{% endif %}>
+ {% if pagenum == "..." %}
+ <a href="#" class="disabled">...</a>
+ {% else %}
<a href="?{% add_to_query_string page_key|default:'page' pagenum %}">{{ pagenum }}</a>
+ {% endif %}
</li>
{% endfor %}
@@ -26,7 +31,7 @@
<li class="disabled">
<a href="#">
{% endif %}
- Older &rarr;</a>
+ {% if notbydate %}Next{% else %}Older{% endif %} &rarr;</a>
</li>
</ul>
</div>