Refactor category article index

This commit is contained in:
Oleg Lavrovsky 2017-04-26 16:19:14 +02:00
parent 5b81e9a867
commit 5fe2e03b65

View file

@ -5,7 +5,18 @@
{% block content %} {% block content %}
{% if articles|length > 1 %} {% if articles|length is 1 %}
<section id="news-details">
<div class="container">
{% for page in articles %}
{% include 'home/page_content.html' %}
{% endfor %}
</div>
</section>
{% else %}
<section id="article-index"> <section id="article-index">
<div class="container"> <div class="container">
<h2>{{ page.trans_title }}</h2> <h2>{{ page.trans_title }}</h2>
@ -23,18 +34,6 @@
</div><!-- /container --> </div><!-- /container -->
</section> </section>
{% elif articles|length > 0 %}
<section id="news-details">
<div class="container">
{% for page in articles %}
{% include 'home/page_content.html' %}
{% endfor %}
</div>
</section>
{% else %}
No articles here.
{% endif %} {% endif %}
{% if subcategories %} {% if subcategories %}