diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
commit | 63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch) | |
tree | 555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/pagination.html | |
download | Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2 Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip |
Initial commit
First public commit
Diffstat (limited to 'servo/templates/pagination.html')
-rwxr-xr-x | servo/templates/pagination.html | 18 |
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>«</span></a></li> + {% else %} + <li class="disabled"><a href="#"><span>«</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>»</span></a></li> + {% else %} + <li class="disabled"><a href="#"><span>»</span></a></li> + {% endif %} + </ul> +</div> |