Mercurial > public > sg101
comparison gpp/templates/forums/pagination.html @ 93:4c33e266db03
Forums: paginate the topic list inside a forum.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 04:33:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
92:62eb9cbbcffc | 93:4c33e266db03 |
---|---|
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> |