Mercurial > public > sg101
annotate gpp/templates/ygroup/pagination.html @ 345:f7fbb404241f
Fix #164; have the calendar display times in the user's time zone. If the user isn't logged in, just use US/Pacific. Default the calendar mode to agenda mode.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 28 Feb 2011 01:58:38 +0000 |
parents | 0c18dfb1da1c |
children |
rev | line source |
---|---|
bgneal@323 | 1 <div class="pagination"> |
bgneal@323 | 2 {% if page_obj.paginator.num_pages == 1 %} |
bgneal@323 | 3 Page 1 of 1 |
bgneal@323 | 4 {% else %} |
bgneal@323 | 5 <ul> |
bgneal@323 | 6 {% if page_obj.has_previous %} |
bgneal@323 | 7 <li class="prev"><a href="./?page={{ page_obj.previous_page_number }}" title="Go to page {{ page_obj.previous_page_number }}">« Previous</a></li> |
bgneal@323 | 8 {% endif %} |
bgneal@323 | 9 {% for num in page_obj.page_range %} |
bgneal@323 | 10 {% if num %} |
bgneal@323 | 11 {% ifequal num page_obj.number %} |
bgneal@323 | 12 <li class="current">{{ num }}</li> |
bgneal@323 | 13 {% else %} |
bgneal@323 | 14 <li class="page"><a href="./?page={{ num }}" title="Go to page {{ num }}">{{ num }}</a></li> |
bgneal@323 | 15 {% endifequal %} |
bgneal@323 | 16 {% else %} |
bgneal@323 | 17 <li>…</li> |
bgneal@323 | 18 {% endif %} |
bgneal@323 | 19 {% endfor %} |
bgneal@323 | 20 {% if page_obj.has_next %} |
bgneal@323 | 21 <li class="next"><a href="./?page={{ page_obj.next_page_number }}" title="Go to page {{ page_obj.next_page_number }}">Next »</a></li> |
bgneal@323 | 22 {% endif %} |
bgneal@323 | 23 </ul> |
bgneal@323 | 24 {% endif %} |
bgneal@323 | 25 </div> |
bgneal@323 | 26 <br clear="left" /> |