You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
571 B
17 lines
571 B
{% load static %} |
|
{% load i18n %} |
|
|
|
<div class="row"> |
|
{% for p in products %} |
|
<div class="{{ class|default:"col-xs-6 col-md-3" }}"> |
|
<div class="thumbnail"> |
|
<img src="{% if p.image_thumbnail %}{{ p.image_thumbnail.url }}{% else %}{% static "images/no-image.png" %}{% endif %}" class="product-thumbnail" alt="{% trans "Product image" %}" /> |
|
<div class="caption"> |
|
<h3>{{ p.name }}</h3> |
|
<h4>{{ p.price|floatformat:2 }} €</h4> |
|
<a class="btn btn-primary" href="{% url 'buy' p.id %}">{% trans "Buy" %}</a> |
|
</div> |
|
</div> |
|
</div> |
|
{% endfor %} |
|
</div>
|
|
|