view gpp/templates/messages/pagination.html @ 507:8631d32e6b16

Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author Brian Neal <bgneal@gmail.com>
date Sun, 04 Dec 2011 03:05:21 +0000
parents 76ba9478ebbd
children
line wrap: on
line source
<div class="pagination">
<span class="step-links">
{% if msgs.has_previous %}
  <a href="{{ url }}?page={{ msgs.previous_page_number }}" onclick="return ajaxPageFetch(this);">&laquo; Previous</a>
{% endif %}

<span class="current">
   Page {{ msgs.number }} of {{ msgs.paginator.num_pages }}.
</span>

{% if msgs.has_next %}
   <a href="{{ url }}?page={{ msgs.next_page_number }}" onclick="return ajaxPageFetch(this);">Next &raquo;</a>
{% endif %}
 </span>
</div>