blob: 81a10c2779c5f7bea4b560637837d432f8eec78a [file] [log] [blame]
Anand Doshida858cc2015-02-24 17:50:44 +05301{% macro product_image_square(website_image, css_class="") %}
2<div class="product-image product-image-square {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
Anand Doshi886def02015-07-22 14:43:17 +05303 {% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}>
Anand Doshida858cc2015-02-24 17:50:44 +05304 {% if not website_image -%}<i class="centered octicon octicon-device-camera"></i>{%- endif %}
5</div>
6{% endmacro %}
7
8{% macro product_image(website_image, css_class="") %}
Rushabh Mehta156ce602015-09-11 18:49:59 +05309 <div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
10 {% if website_image -%}
11 <img src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
12 {%- else -%}
13 <i class="centered octicon octicon-device-camera"></i>
14 {%- endif %}
15 </div>
16{% endmacro %}
17