Fixing the product modal so it renders either an actual image or nothing

This commit is contained in:
Will Marshall
2014-07-29 12:59:43 +10:00
parent e5b675dcaf
commit 1e207fefd1

View File

@@ -1,6 +1,6 @@
.row
.columns.small-12.large-6
%img.product-img{"ng-src" => "{{product.master.images[0].large_url}}", "ng-if" => "product.master.images[0]"}
%img.product-img{"ng-src" => "{{product.images[0].large_url}}", "ng-if" => "product.images[0]"}
.columns.small-12.large-6.product-header
%h2
%render-svg{path: "{{product.primary_taxon.icon}}"}