summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/search_results.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/search_results.html
parentc0047ae6ec63a5ed745f733efca51ce332a296da (diff)
downloadhyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.tar.gz
hyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.tar.xz
hyperkitty-28ebf918ca25ba170bb8ad0ac3e2c740d34f9301.zip
Greatly improve the pager
Diffstat (limited to 'hyperkitty/templates/search_results.html')
-rw-r--r--hyperkitty/templates/search_results.html30
1 files changed, 1 insertions, 29 deletions
diff --git a/hyperkitty/templates/search_results.html b/hyperkitty/templates/search_results.html
index c9cc754..f91d664 100644
--- a/hyperkitty/templates/search_results.html
+++ b/hyperkitty/templates/search_results.html
@@ -44,35 +44,7 @@ Search results for "{{ query }}"{% if mlist %} - {{ mlist.display_name|default:m
<p>Sorry no email could be found for this query.</p>
{% endfor %}
- <div class="pagination pagination-centered">
- <ul>
- {% if messages.has_previous %}
- <li>
- <a href="?{% add_to_query_string page=messages.previous_page_number %}">
- {% else %}
- <li class="disabled">
- <a href="#">
- {% endif %}
- &larr; Previous</a>
- </li>
-
- {% for pagenum in messages.page_range %}
- <li{% if pagenum == messages.number %} class="active"{% endif %}>
- <a href="?{% add_to_query_string page=pagenum %}">{{ pagenum }}</a>
- </li>
- {% endfor %}
-
- {% if messages.has_next %}
- <li>
- <a href="?{% add_to_query_string page=messages.next_page_number %}">
- {% else %}
- <li class="disabled">
- <a href="#">
- {% endif %}
- Next &rarr;</a>
- </li>
- </ul>
- </div>
+ {% include "paginator.html" with pager=messages notbydate=True %}
</div>