diff --git a/app/assets/javascripts/discourse/app/components/categories-boxes.hbs b/app/assets/javascripts/discourse/app/components/categories-boxes.hbs index d5469e87332..949f0740e1a 100644 --- a/app/assets/javascripts/discourse/app/components/categories-boxes.hbs +++ b/app/assets/javascripts/discourse/app/components/categories-boxes.hbs @@ -1,100 +1,110 @@ -{{#each this.categories as |c|}} - - -
-
- {{#unless c.isMuted}} - - {{/unless}} - -
- + + {{#each this.categories as |c|}} + +
+
{{#unless c.isMuted}} -
- {{html-safe c.description_excerpt}} + + {{/unless}} + +
+ - {{#if c.isGrandParent}} - {{#each c.subcategories as |subcategory|}} -
-
- - {{#if subcategory.subcategories}} -
- {{#each subcategory.subcategories as |subsubcategory|}} - {{#unless subsubcategory.isMuted}} - - - {{category-link subsubcategory hideParent="true"}} - - {{/unless}} - {{/each}} -
- {{/if}} -
-
- {{/each}} - {{else if c.subcategories}} -
- {{#each c.subcategories as |sc|}} - - - {{#if sc.uploaded_logo.url}} - - {{/if}} - - - {{category-link sc hideParent="true"}} - - {{/each}} + {{#unless c.isMuted}} +
+ {{html-safe c.description_excerpt}}
- {{/if}} - {{/unless}} + + {{#if c.isGrandParent}} + {{#each c.subcategories as |subcategory|}} +
+
+ + {{#if subcategory.subcategories}} +
+ {{#each subcategory.subcategories as |subsubcategory|}} + {{#unless subsubcategory.isMuted}} + + + {{category-link subsubcategory hideParent="true"}} + + {{/unless}} + {{/each}} +
+ {{/if}} +
+
+ {{/each}} + {{else if c.subcategories}} + + {{/if}} + {{/unless}} +
+ +
- -
-
- -{{/each}} + + {{/each}} +