summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/paginator.html
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates/paginator.html')
-rw-r--r--hyperkitty/templates/paginator.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/hyperkitty/templates/paginator.html b/hyperkitty/templates/paginator.html
new file mode 100644
index 0000000..170d8b4
--- /dev/null
+++ b/hyperkitty/templates/paginator.html
@@ -0,0 +1,27 @@
+{% load i18n %}
+<div class="pager">
+ {% if has_previous %}
+ <span class="page">
+ <a href="?page={{ previous }}">&lt; Prev</a>
+ </span>
+ {% endif %}
+
+ {% if show_first %}
+ <span class="page"><a href="?page=1">1</a></span>
+ <span class="ellipsis">...</span>
+ {% endif %}
+ {% for linkpage in page_numbers %}
+ {% ifequal linkpage page %}
+ <span class="current">{{ page }}</span>
+ {% else %}
+ <span class="page"><a href="?page={{ linkpage }}">{{ linkpage }}</a></span>
+ {% endifequal %}
+ {% endfor %}
+ {% if show_last %}
+ <span class="ellipsis">...</span>
+ <span class="page"><a href="?page=last">{{ pages }}</a></span>
+ {% endif %}
+ {% if has_next %}
+ <span class="page"><a href="?page={{ next }}">Next &gt;</a></span>
+ {% endif %}
+</div>