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 }}" |
| 3 | {% if website_image -%} style="background-image: url({{ website_image }});" {%- endif %}> |
| 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="") %} |
| 9 | <div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"> |
| 10 | {% if website_image -%} |
| 11 | <img src="{{ website_image }}" class="img-responsive"> |
| 12 | {%- else -%} |
| 13 | <i class="centered octicon octicon-device-camera"></i> |
| 14 | {%- endif %} |
| 15 | </div> |
| 16 | {% endmacro %} |
| 17 | |