Mercurial > public > sg101
annotate gpp/templates/messages/pagination.html @ 504:b5bd3509e6e6
Made some tweaks to the ajax login javascript.
Cleared the inputs on failure so someone won't repeatedly try a bad login.
Redirect on lockout so the page will refresh.
Set focus on the username box after failure for convenience.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 16:25:15 +0000 |
parents | 76ba9478ebbd |
children |
rev | line source |
---|---|
bgneal@425 | 1 <div class="pagination"> |
bgneal@425 | 2 <span class="step-links"> |
bgneal@425 | 3 {% if msgs.has_previous %} |
bgneal@425 | 4 <a href="{{ url }}?page={{ msgs.previous_page_number }}" onclick="return ajaxPageFetch(this);">« Previous</a> |
bgneal@425 | 5 {% endif %} |
bgneal@425 | 6 |
bgneal@425 | 7 <span class="current"> |
bgneal@425 | 8 Page {{ msgs.number }} of {{ msgs.paginator.num_pages }}. |
bgneal@425 | 9 </span> |
bgneal@425 | 10 |
bgneal@425 | 11 {% if msgs.has_next %} |
bgneal@425 | 12 <a href="{{ url }}?page={{ msgs.next_page_number }}" onclick="return ajaxPageFetch(this);">Next »</a> |
bgneal@425 | 13 {% endif %} |
bgneal@425 | 14 </span> |
bgneal@425 | 15 </div> |