Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 1 | {% 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 Doshi | 886def0 | 2015-07-22 14:43:17 +0530 | [diff] [blame] | 3 | {% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}> |
Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 4 | {% 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 Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 9 | <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 | |