Simplify unnecessarily complicated conditional.

if (a) if (a and (b or not b and c))
can be simplified as
if (a) if (b or c)
This commit is contained in:
Mario Lang 2014-02-12 12:34:22 +01:00
commit b9846b5a7f

View file

@ -43,8 +43,7 @@
{% 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 articles_page.has_previous() or loop.length > 1 %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->