From 7f55e8b2beb406ce0494add8de4008b4c1946d4a Mon Sep 17 00:00:00 2001 From: Amanda Alves Branquinho Date: Mon, 16 Sep 2024 12:48:32 -0300 Subject: [PATCH] DEV: Add outlet wrapper to categories only component (#28669) --- .../app/components/categories-only.hbs | 99 ++++++++++--------- 1 file changed, 54 insertions(+), 45 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/categories-only.hbs b/app/assets/javascripts/discourse/app/components/categories-only.hbs index 227e8114f24..e847fb9cb6c 100644 --- a/app/assets/javascripts/discourse/app/components/categories-only.hbs +++ b/app/assets/javascripts/discourse/app/components/categories-only.hbs @@ -1,49 +1,16 @@ -{{#if this.categories}} - {{#if this.filteredCategories}} - - - - - - {{#if this.showTopics}} - - {{/if}} - - - - {{#each this.categories as |category|}} - - {{/each}} - -
{{i18n "categories.category"}}{{i18n "categories.topics"}}{{i18n "categories.latest"}}
- {{/if}} - - {{#if this.mutedCategories}} -
- -

{{i18n "categories.muted"}}

- {{#if this.mutedToggleIcon}} - {{d-icon this.mutedToggleIcon}} - {{/if}} -
- + + {{#if this.categories}} + {{#if this.filteredCategories}} +
{{#if this.showTopics}} @@ -51,19 +18,61 @@ {{/if}} - + {{#each this.categories as |category|}} {{/each}}
{{i18n "categories.category"}} {{i18n "categories.topics"}}
-
+ {{/if}} + + {{#if this.mutedCategories}} +
+ +

{{i18n "categories.muted"}}

+ {{#if this.mutedToggleIcon}} + {{d-icon this.mutedToggleIcon}} + {{/if}} +
+ + + + + + {{#if this.showTopics}} + + {{/if}} + + + + {{#each this.categories as |category|}} + + {{/each}} + +
{{i18n "categories.category"}}{{i18n "categories.topics"}}{{i18n "categories.latest"}}
+
+ {{/if}} {{/if}} -{{/if}} +