Fixed image display
							parent
							
								
									03573129b3
								
							
						
					
					
						commit
						af7c38aee7
					
				|  | @ -142,21 +142,19 @@ | |||
|                     <h2>{{ @root.__ "Product images" }}</h2> | ||||
|                     {{#if images}} | ||||
|                     <div class="row"> | ||||
|                         <div class="col-sm-10 offset-sm-2"> | ||||
|                         {{#each images}} | ||||
|                             <div class="col-sm-3"> | ||||
|                                 <p> | ||||
|                                     <a data-id="{{this.path}}" class="btn-delete-image btn btn-outline-danger">{{ @root.__ "Delete" }}</a> | ||||
|                                     {{#ifCond this.productImage '==' true}} | ||||
|                                         <span class="label label-info">{{ @root.__ "main image" }}</span> | ||||
|                                     {{else}} | ||||
|                                         <a data-id="{{../this.path}}" class="set-as-main-image btn btn-outline-success">{{ @root.__ "Set as main image" }}</a> | ||||
|                                     {{/ifCond}} | ||||
|                                 </p> | ||||
|                                 <img src="{{this.path}}" class="product-main-image img-responsive"> | ||||
|                             </div> | ||||
|                         {{/each}} | ||||
|                         <div class="col-sm-3"> | ||||
|                             <p> | ||||
|                                 <a data-id="{{this.path}}" class="btn-delete-image btn btn-outline-danger">{{ @root.__ "Delete" }}</a> | ||||
|                                 {{#ifCond this.productImage '==' true}} | ||||
|                                     <span class="label label-info">{{ @root.__ "main image" }}</span> | ||||
|                                 {{else}} | ||||
|                                     <a data-id="{{../this.path}}" class="set-as-main-image btn btn-outline-success">{{ @root.__ "Set as main image" }}</a> | ||||
|                                 {{/ifCond}} | ||||
|                             </p> | ||||
|                             <img src="{{this.path}}" class="product-main-image img-fluid"> | ||||
|                         </div> | ||||
|                         {{/each}} | ||||
|                     </div> | ||||
|                     {{else}} | ||||
|                         <h4 class="text-warning">{{ @root.__ "No images have been uploaded for this product" }}</h4> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue