Hide description paragraph if product has no description

Improves the appearance of the layout when no description is present
This commit is contained in:
Matt-Yorkley
2020-07-07 14:00:01 +02:00
committed by Maikel Linke
parent 9da91576ac
commit a89c81a033

View File

@@ -7,7 +7,7 @@
%h3
%a{"ng-click" => "triggerProductModal()", href: 'javascript:void(0)'}
%span{"ng-bind" => "::product.name"}
%p.product-description{ng: {bind: "::product.description", click: "triggerProductModal()"}}
%p.product-description{ng: {bind: "::product.description", click: "triggerProductModal()", show: "product.description.length"}}
.product-producer
= t :products_from
%span