Do not show master options text (eg. '1kg') when product has variants

This commit is contained in:
Rohan Mitchell
2014-02-18 16:45:57 +11:00
parent 4ee4ea7c60
commit b0cb19e370

View File

@@ -21,7 +21,7 @@
{{ product.supplier.name }}
%td.notes {{ product.notes | truncate:80 }}
%td
{{ product.master.options_text }}
%span{"ng-hide" => "product.variants.length > 0"} {{ product.master.options_text }}
%span{"ng-show" => "product.variants.length > 0"}
%img.collapse{src: "/assets/collapse.png",
"ng-show" => "product.show_variants",