Mercurial > public > sg101
diff gpp/templates/ygroup/pagination.html @ 323:0c18dfb1da1c
Fixing #149; adding the ygroup application: an archive of the old Yahoo Group messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Feb 2011 00:31:54 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/ygroup/pagination.html Sun Feb 20 00:31:54 2011 +0000 @@ -0,0 +1,26 @@ +<div class="pagination"> +{% if page_obj.paginator.num_pages == 1 %} +Page 1 of 1 +{% else %} +<ul> +{% if page_obj.has_previous %} +<li class="prev"><a href="./?page={{ page_obj.previous_page_number }}" title="Go to page {{ page_obj.previous_page_number }}">« Previous</a></li> +{% endif %} +{% for num in page_obj.page_range %} +{% if num %} +{% ifequal num page_obj.number %} +<li class="current">{{ num }}</li> +{% else %} +<li class="page"><a href="./?page={{ num }}" title="Go to page {{ num }}">{{ num }}</a></li> +{% endifequal %} +{% else %} +<li>…</li> +{% endif %} +{% endfor %} +{% if page_obj.has_next %} +<li class="next"><a href="./?page={{ page_obj.next_page_number }}" title="Go to page {{ page_obj.next_page_number }}">Next »</a></li> +{% endif %} +</ul> +{% endif %} +</div> +<br clear="left" />