diff --git a/app/assets/javascripts/discourse/app/components/categories-only.hbs b/app/assets/javascripts/discourse/app/components/categories-only.hbs index e847fb9cb6c..f546cbbe9d3 100644 --- a/app/assets/javascripts/discourse/app/components/categories-only.hbs +++ b/app/assets/javascripts/discourse/app/components/categories-only.hbs @@ -4,29 +4,45 @@ > {{#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 this.site.mobileView}} +
+ + {{#each this.filteredCategories as |c|}} + + {{/each}} + +
+ {{else}} + + + + + + {{#if this.showTopics}} + + {{/if}} + + + + {{#each this.categories as |category|}} + + {{/each}} + +
{{i18n "categories.category"}}{{i18n "categories.topics"}}{{i18n "categories.latest"}}
+ {{/if}} {{/if}} {{#if this.mutedCategories}} @@ -41,34 +57,50 @@ {{d-icon this.mutedToggleIcon}} {{/if}} - - - - - - {{#if this.showTopics}} - - {{/if}} - - - - {{#each this.categories as |category|}} + {{#if this.site.mobileView}} +
+ {{#each this.mutedCategories as |c|}} {{/each}} -
-
{{i18n "categories.category"}}{{i18n "categories.topics"}}{{i18n "categories.latest"}}
+ + {{else}} + + + + + + {{#if this.showTopics}} + + {{/if}} + + + + {{#each this.categories as |category|}} + + {{/each}} + +
{{i18n "categories.category"}}{{i18n "categories.topics"}}{{i18n "categories.latest"}}
+ {{/if}} {{/if}} {{/if}} diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs deleted file mode 100644 index 0b820b7a736..00000000000 --- a/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs +++ /dev/null @@ -1,38 +0,0 @@ -{{#if this.categories}} - {{#if this.filteredCategories}} -
- - {{#each this.filteredCategories as |c|}} - - {{/each}} - -
- {{/if}} - - {{#if this.mutedCategories}} -
- -

{{i18n "categories.muted"}}

- {{#if this.mutedToggleIcon}} - {{d-icon this.mutedToggleIcon}} - {{/if}} -
-
- {{#each this.mutedCategories as |c|}} - - {{/each}} -
-
- {{/if}} -{{/if}} \ No newline at end of file