Mercurial > public > sg101
annotate gpp/templates/forums/pagination.html @ 230:5ee9422ce83c
Fix lack of trailing slash on the individual forum RSS feed links. For some reason this was causing a bizarre middleware error 'request object has not attribute session'.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Jul 2010 03:51:37 +0000 |
parents | 4c33e266db03 |
children |
rev | line source |
---|---|
bgneal@93 | 1 <div class="forums-post-navigation"> |
bgneal@93 | 2 {% ifequal page.paginator.num_pages 1 %} |
bgneal@93 | 3 Page 1 of 1 |
bgneal@93 | 4 {% else %} |
bgneal@93 | 5 Goto Page: |
bgneal@93 | 6 {% if page.has_previous %} |
bgneal@93 | 7 <a href="./?page={{ page.previous_page_number }}">Previous</a> |
bgneal@93 | 8 {% endif %} |
bgneal@93 | 9 {% for num in page.page_range %} |
bgneal@93 | 10 {% if num %} |
bgneal@93 | 11 {% ifequal num page.number %} |
bgneal@93 | 12 {{ num }} |
bgneal@93 | 13 {% else %} |
bgneal@93 | 14 <a href="./?page={{ num }}">{{ num }}</a> |
bgneal@93 | 15 {% endifequal %} |
bgneal@93 | 16 {% else %} |
bgneal@93 | 17 … |
bgneal@93 | 18 {% endif %} |
bgneal@93 | 19 {% endfor %} |
bgneal@93 | 20 {% if page.has_next %} |
bgneal@93 | 21 <a href="./?page={{ page.next_page_number }}">Next</a> |
bgneal@93 | 22 {% endif %} |
bgneal@93 | 23 {% endifequal %} |
bgneal@93 | 24 </div> |