Only show pagination if we have pages to show

This commit is contained in:
Christopher Allan Webber 2011-07-02 18:31:02 -05:00
parent f9f135647c
commit 841110a75d

View File

@ -17,9 +17,9 @@
{# only display if {{pagination}} is defined #}
{% if pagination %}
{% if pagination and pagination.pages > 1 %}
<div class="pagination">
<p>
<p>
{% if pagination.has_prev %}
<a href="{{ pagination.get_page_url(request, pagination.page-1) }}">&laquo; Prev</a>
{% endif %}