Changed the way categories results are displayed

master
Mark Moffat 2019-12-18 19:52:23 +10:30
parent c72681fdf2
commit 7e8183bf8f
3 changed files with 12 additions and 12 deletions

View File

@ -2,11 +2,11 @@
<div class="productsWrapper col-md-8 col-md-offset-2"> <div class="productsWrapper col-md-8 col-md-offset-2">
{{#if filtered}} {{#if filtered}}
<div class="product-layout col-md-12"> <div class="product-layout col-md-12">
{{#if menuLink}} {{#ifCond @root.paginateUrl '==' 'category'}}
<h4>{{ @root.__ "Category" }}: <strong>{{menuLink.title}}</strong></h4> <h4>{{ @root.__ "Category" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{else}} {{else}}
<h4>{{ @root.__ "Search results" }}: <strong>{{searchTerm}}</strong></h4> <h4>{{ @root.__ "Search results" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{/if}} {{/ifCond}}
</div> </div>
{{/if}} {{/if}}
<div class="row product-layout"> <div class="row product-layout">

View File

@ -2,11 +2,11 @@
<div class="productsWrapper col m8 offset-m2"> <div class="productsWrapper col m8 offset-m2">
{{#if filtered}} {{#if filtered}}
<div class="product-layout col m12"> <div class="product-layout col m12">
{{#if menuLink}} {{#ifCond @root.paginateUrl '==' 'category'}}
<h4>{{ @root.__ "Category" }}: <strong>{{menuLink.title}}</strong></h4> <h4>{{ @root.__ "Category" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{else}} {{else}}
<h4>{{ @root.__ "Search results" }}: <strong>{{searchTerm}}</strong></h4> <h4>{{ @root.__ "Search results" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{/if}} {{/ifCond}}
</div> </div>
{{/if}} {{/if}}
<div class="row product-layout"> <div class="row product-layout">

View File

@ -2,11 +2,11 @@
<div class="productsWrapper col m8 offset-m1"> <div class="productsWrapper col m8 offset-m1">
{{#if filtered}} {{#if filtered}}
<div class="product-layout col m12"> <div class="product-layout col m12">
{{#if menuLink}} {{#ifCond @root.paginateUrl '==' 'category'}}
<h4>{{ @root.__ "Category" }}: <strong>{{menuLink.title}}</strong></h4> <h4>{{ @root.__ "Category" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{else}} {{else}}
<h4>{{ @root.__ "Search results" }}: <strong>{{searchTerm}}</strong></h4> <h4>{{ @root.__ "Search results" }}: <strong>{{@root.searchTerm}}</strong></h4>
{{/if}} {{/ifCond}}
</div> </div>
{{/if}} {{/if}}
<div class="row product-layout"> <div class="row product-layout">