From af7c38aee7e8c7cd309a19f5d321facddd07b006 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Mon, 30 Dec 2019 17:21:53 +1030 Subject: [PATCH] Fixed image display --- views/product_edit.hbs | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/views/product_edit.hbs b/views/product_edit.hbs index 132dc4c..87dfa86 100644 --- a/views/product_edit.hbs +++ b/views/product_edit.hbs @@ -142,21 +142,19 @@

{{ @root.__ "Product images" }}

{{#if images}}
-
{{#each images}} -
-

- {{ @root.__ "Delete" }} - {{#ifCond this.productImage '==' true}} - {{ @root.__ "main image" }} - {{else}} - {{ @root.__ "Set as main image" }} - {{/ifCond}} -

- -
- {{/each}} +
+

+ {{ @root.__ "Delete" }} + {{#ifCond this.productImage '==' true}} + {{ @root.__ "main image" }} + {{else}} + {{ @root.__ "Set as main image" }} + {{/ifCond}} +

+
+ {{/each}}
{{else}}

{{ @root.__ "No images have been uploaded for this product" }}