fix kfet home template

This commit is contained in:
Aurélien Delobelle 2017-04-06 00:00:53 +02:00
parent ebf948d042
commit c849306a32

View file

@ -20,40 +20,42 @@
<div class="content-right"> <div class="content-right">
<div class="content-right-block"> <div class="content-right-block">
<h2>Carte</h2> <h2>Carte</h2>
<div class="column-row"> <div class="column-row">
<div class="column-sm-1 column-md-2 column-lg-3"> <div class="column-sm-1 column-md-2 column-lg-3">
<div class="unbreakable carte-inverted"> <div class="unbreakable carte-inverted">
<h3>Pressions du moment</h3> {% if pressions %}
<ul class="carte"> <h3>Pressions du moment</h3>
{% for article in pressions %} <ul class="carte">
<li class="carte-line"> {% for article in pressions %}
<div class="filler"></div> <li class="carte-line">
<span class="carte-label">{{ article.name }}</span> <div class="filler"></div>
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span> <span class="carte-label">{{ article.name }}</span>
</li> <span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
{% endfor %} </li>
</ul>
</div><!-- endblock unbreakable -->
{% for article in articles %}
{% ifchanged article.category %}
{% if not forloop.first %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
<div class="unbreakable">
<h3>{{ article.category.name }}</h3>
<ul class="carte">
{% endifchanged %}
<li class="carte-line">
<div class="filler"></div>
<span class="carte-label">{{ article.name }}</span>
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
</li>
{% if foorloop.last %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
{% endfor %} {% endfor %}
</ul>
{% endif %}
</div><!-- endblock unbreakable -->
{% for article in articles %}
{% ifchanged article.category %}
{% if not forloop.first %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
<div class="unbreakable">
<h3>{{ article.category.name }}</h3>
<ul class="carte">
{% endifchanged %}
<li class="carte-line">
<div class="filler"></div>
<span class="carte-label">{{ article.name }}</span>
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
</li>
{% if forloop.last %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
{% endfor %}
</div> </div>
</div> </div>
</div> </div>