Mercurial > public > sg101
view gpp/templates/forums/pagination.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | 4c33e266db03 |
children |
line wrap: on
line source
<div class="forums-post-navigation"> {% ifequal page.paginator.num_pages 1 %} Page 1 of 1 {% else %} Goto Page: {% if page.has_previous %} <a href="./?page={{ page.previous_page_number }}">Previous</a> {% endif %} {% for num in page.page_range %} {% if num %} {% ifequal num page.number %} {{ num }} {% else %} <a href="./?page={{ num }}">{{ num }}</a> {% endifequal %} {% else %} … {% endif %} {% endfor %} {% if page.has_next %} <a href="./?page={{ page.next_page_number }}">Next</a> {% endif %} {% endifequal %} </div>