Categories refactor (#516)
* feat: pagination on /categories and /category page for sub categories * feat: show subcategories left * fix: rename categories to allCategories on /search * feat: add component for subcategory containermain
parent
cc4d20d1ff
commit
39f638dd53
@ -1,9 +1,14 @@
|
||||
{{{ if children.length }}}
|
||||
<div class="subcategory">
|
||||
<!-- IF children.length --><p>[[category:subcategories]]</p><!-- ENDIF children.length -->
|
||||
<p>[[category:subcategories]]</p>
|
||||
|
||||
<ul class="categories" itemscope itemtype="http://www.schema.org/ItemList">
|
||||
<ul component="category/subcategory/container" class="categories" itemscope itemtype="http://www.schema.org/ItemList">
|
||||
{{{each children}}}
|
||||
<!-- IMPORT partials/categories/item.tpl -->
|
||||
{{{end}}}
|
||||
</ul>
|
||||
</div>
|
||||
{{{ if hasMoreSubCategories}}}
|
||||
<button class="btn btn-default" component="category/load-more-subcategories">[[category:x-more-categories, {subCategoriesLeft}]]</button>
|
||||
{{{ end }}}
|
||||
</div>
|
||||
{{{ end }}}
|
Loading…
Reference in New Issue