This commit is contained in:
Jérôme Steunou 2014-02-08 23:57:09 +01:00
commit a610c602cc

View file

@ -43,8 +43,9 @@
{% endif %}
{% if loop.last %}
</ol><!-- /#posts-list -->
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% if loop.last and
( (loop.length == DEFAULT_PAGINATION and articles_page.has_next()) or
(loop.length < DEFAULT_PAGINATION and articles_page.has_previous())) %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->