aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/pagination.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/pagination.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/pagination.html')
-rwxr-xr-xservo/templates/pagination.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/servo/templates/pagination.html b/servo/templates/pagination.html
new file mode 100755
index 0000000..5625b7c
--- /dev/null
+++ b/servo/templates/pagination.html
@@ -0,0 +1,18 @@
+{% load i18n %}
+{% load servo_tags %}
+
+<div class="pagination pagination-centered">
+ <ul>
+ {% if items.has_previous %}
+ <li><a href="?{% paginator_page request items.previous_page_number %}"><span>&laquo;</span></a></li>
+ {% else %}
+ <li class="disabled"><a href="#"><span>&laquo;</span></a></li>
+ {% endif %}
+ <li class="active"><a href="#"><span>{% trans "Page" %} {{ items.number }}/{{ items.paginator.num_pages }}</span></a></li>
+ {% if items.has_next %}
+ <li><a href="?{% paginator_page request items.next_page_number %}"><span>&raquo;</span></a></li>
+ {% else %}
+ <li class="disabled"><a href="#"><span>&raquo;</span></a></li>
+ {% endif %}
+ </ul>
+</div>