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.
 
 
 
 
 
 

50 lines
2.0 KiB

<div class="col-md-4 col-xs-4 col-sm-4 col-lg-4">
<div class="thumbnail dtys__product {% if object.is_stopped %}stopped{% endif %}" id="dtys_product_{{ object.id }}">
<div class="wait-block">
<span class="wait-icon glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
</div>
<div class="sold-block alert-danger">
<div class="sold-block__message">Продано!</div>
</div>
{% set product = object.product.product %}
{% set im = product.main_image()|thumbnail("420x420") %}
<a>
<img src="/static/{{ im.url|watermark('medium-photo') }}"
class="img-responsive" alt="Купить {{ product.title }}"
title="Купить {{ product.title }}" width="210" height="210">
</a>
<div class="caption">
<div class="title">
<span>
{{ product.title }}
</span>
</div>
<div class="price counter">
{% if not object.is_stopped %}
{{ object.current_price_format() }}
{% else %}
{{ object.price_stopped }}
{% endif %}
</div>
<div class="in-cart">
<a class="btn btn-warning btn-block add-to-cart"
href="/dtys/buy/{{ object.id }}/"
{% if object.is_stopped %}style="display: none"{% endif %}>
<span><i class="glyphicon glyphicon-shopping-cart"
aria-hidden="true"></i> Добавить в корзину</span>
</a>
<span class="btn btn-warning btn-block fake-add-to-cart" {% if not object.is_stopped %}style="display: none"{% endif %}>
<span><i class="glyphicon glyphicon-shopping-cart"
aria-hidden="true"></i> Добавить в корзину</span>
</span>
</div>
</div>
</div>
</div>