Mercurial > public > sg101
comparison gpp/templates/forums/post_pagination.html @ 90:317c7bcaecee
Forums: pagination for topics.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 00:21:54 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
89:021492db4aad | 90:317c7bcaecee |
---|---|
1 <div class="forums-post-navigation"> | |
2 {% ifequal page.paginator.num_pages 1 %} | |
3 Page 1 of 1 | |
4 {% else %} | |
5 Goto Page: | |
6 {% if page.has_previous %} | |
7 <a href="./?page={{ page.previous_page_number }}">Previous</a> | |
8 {% endif %} | |
9 {% for num in page.page_range %} | |
10 {% if num %} | |
11 {% ifequal num page.number %} | |
12 {{ num }} | |
13 {% else %} | |
14 <a href="./?page={{ num }}">{{ num }}</a> | |
15 {% endifequal %} | |
16 {% else %} | |
17 … | |
18 {% endif %} | |
19 {% endfor %} | |
20 {% if page.has_next %} | |
21 <a href="./?page={{ page.next_page_number }}">Next</a> | |
22 {% endif %} | |
23 {% endifequal %} | |
24 </div> |