2015-02-24 12:20:44 +00:00
|
|
|
{% macro product_image_square(website_image, css_class="") %}
|
|
|
|
<div class="product-image product-image-square {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
|
2015-07-22 09:13:17 +00:00
|
|
|
{% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}>
|
2015-02-24 12:20:44 +00:00
|
|
|
{% if not website_image -%}<i class="centered octicon octicon-device-camera"></i>{%- endif %}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro product_image(website_image, css_class="") %}
|
2015-09-11 13:19:59 +00:00
|
|
|
<div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
|
|
|
|
{% if website_image -%}
|
|
|
|
<img src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
|
|
|
|
{%- else -%}
|
|
|
|
<i class="centered octicon octicon-device-camera"></i>
|
|
|
|
{%- endif %}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|