forked from django-oscar/django-oscar
-
Notifications
You must be signed in to change notification settings - Fork 19
/
list.html
49 lines (45 loc) · 1.36 KB
/
list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% extends "layout.html" %}
{% load i18n %}
{% load product_tags %}
{% block title %}
{% trans "Offers" %} | {{ block.super }}
{% endblock %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li>
<a href="{% url promotions:home %}">{% trans "Home" %}</a>
<span class="divider">/</span>
</li>
<li class="active">{% trans "Offers" %}</li>
</ul>
{% endblock %}
{% block headertext %}
{% trans "Offers" %}
{% endblock %}
{% block content %}
{% if not offers %}
<p>{% trans "There are no site offers at the moment." %}</p>
{% else %}
{% for offer in offers %}
<h4>{{ offer.name }}</h4>
{% if offer.description %}
<p>{{ offer.description|safe }}</p>
{% endif %}
{% if offer.has_products %}
<div class="es-carousel-wrapper wide">
<div class="es-carousel">
<ul class="products">
{% for product in offer.products|slice:":12" %}
<li>{% render_product product %}</li>
{% endfor %}
</ul>
</div>
</div>
<p>
<a class="btn" href="{% url offer:detail offer.slug %}">{% trans "Browse products in offer" %}</a>
</p>
{% endif %}
<hr/>
{% endfor %}
{% endif %}
{% endblock content %}