|
|
@@ -25,26 +25,25 @@
|
|
25
|
25
|
<p>{% trans "There are no site offers at the moment." %}</p>
|
|
26
|
26
|
{% else %}
|
|
27
|
27
|
{% for offer in offers %}
|
|
28
|
|
- <div class="well">
|
|
29
|
|
- <h4>{{ offer.name }}</h4>
|
|
30
|
|
- {% if offer.description %}
|
|
31
|
|
- <p>{{ offer.description|safe }}</p>
|
|
32
|
|
- {% endif %}
|
|
33
|
|
- {% if offer.has_products %}
|
|
34
|
|
- <div class="es-carousel-wrapper">
|
|
35
|
|
- <div class="es-carousel">
|
|
36
|
|
- <ul class="products">
|
|
37
|
|
- {% for product in offer.products|slice:":12" %}
|
|
38
|
|
- <li>{% render_product product %}</li>
|
|
39
|
|
- {% endfor %}
|
|
40
|
|
- </ul>
|
|
41
|
|
- </div>
|
|
|
28
|
+ <h4>{{ offer.name }}</h4>
|
|
|
29
|
+ {% if offer.description %}
|
|
|
30
|
+ <p>{{ offer.description|safe }}</p>
|
|
|
31
|
+ {% endif %}
|
|
|
32
|
+ {% if offer.has_products %}
|
|
|
33
|
+ <div class="es-carousel-wrapper wide">
|
|
|
34
|
+ <div class="es-carousel">
|
|
|
35
|
+ <ul class="products">
|
|
|
36
|
+ {% for product in offer.products|slice:":12" %}
|
|
|
37
|
+ <li>{% render_product product %}</li>
|
|
|
38
|
+ {% endfor %}
|
|
|
39
|
+ </ul>
|
|
42
|
40
|
</div>
|
|
43
|
|
- <p>
|
|
44
|
|
- <a class="btn" href="{% url offer:detail offer.slug %}">{% trans "Browse products in offer" %}</a>
|
|
45
|
|
- </p>
|
|
46
|
|
- {% endif %}
|
|
47
|
|
- </div>
|
|
|
41
|
+ </div>
|
|
|
42
|
+ <p>
|
|
|
43
|
+ <a class="btn" href="{% url offer:detail offer.slug %}">{% trans "Browse products in offer" %}</a>
|
|
|
44
|
+ </p>
|
|
|
45
|
+ {% endif %}
|
|
|
46
|
+ <hr/>
|
|
48
|
47
|
{% endfor %}
|
|
49
|
48
|
{% endif %}
|
|
50
|
49
|
{% endblock content %}
|