conditionals for prev next

This commit is contained in:
Sanj 2011-10-25 20:00:27 +01:00
parent a3ff114ba3
commit 17b710d54f

View File

@ -40,9 +40,9 @@
{% if page.has_previous or page.has_next %}
<div id="prevNext>
{% if page.has_previous %}<a id="triangleUp" href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Previous{% if page.has_previous %}</a>{% endif %}
{% if page.has_previous %}<a id="triangleUp" href="?q={{ query }}&amp;page={{ page.previous_page_number }}">Previous</a>{% endif %}
|
{% if page.has_next %}<a id="triangleDown" href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
{% if page.has_next %}<a id="triangleDown" href="?q={{ query }}&amp;page={{ page.next_page_number }}">Next</a>{% endif %}
</div>
{% endif %}
{% else %}