Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
322:c3d3d7114749 | 323:0c18dfb1da1c |
---|---|
1 <div class="pagination"> | |
2 {% if page_obj.paginator.num_pages == 1 %} | |
3 Page 1 of 1 | |
4 {% else %} | |
5 <ul> | |
6 {% if page_obj.has_previous %} | |
7 <li class="prev"><a href="./?page={{ page_obj.previous_page_number }}" title="Go to page {{ page_obj.previous_page_number }}">« Previous</a></li> | |
8 {% endif %} | |
9 {% for num in page_obj.page_range %} | |
10 {% if num %} | |
11 {% ifequal num page_obj.number %} | |
12 <li class="current">{{ num }}</li> | |
13 {% else %} | |
14 <li class="page"><a href="./?page={{ num }}" title="Go to page {{ num }}">{{ num }}</a></li> | |
15 {% endifequal %} | |
16 {% else %} | |
17 <li>…</li> | |
18 {% endif %} | |
19 {% endfor %} | |
20 {% if page_obj.has_next %} | |
21 <li class="next"><a href="./?page={{ page_obj.next_page_number }}" title="Go to page {{ page_obj.next_page_number }}">Next »</a></li> | |
22 {% endif %} | |
23 </ul> | |
24 {% endif %} | |
25 </div> | |
26 <br clear="left" /> |