diff --git a/app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbs b/app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbs index 9629c4caea5..4d2688a3f12 100644 --- a/app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbs +++ b/app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbs @@ -1,24 +1,43 @@ {{#each this.categories as |category|}} - - - - - - - - - - {{#each category.serializedSubcategories as |subCategory|}} - - {{else}} - {{! No subcategories... so just show the parent to avoid confusion }} - - {{/each}} - -
- - {{html-safe - category.stat - }} - {{i18n "categories.topics"}}{{i18n "categories.latest"}}
+ {{#if this.site.mobileView}} +
+
+ + {{html-safe + category.stat + }} +
+
+ {{#each category.serializedSubcategories as |subCategory|}} + + {{else}} + {{! No subcategories... so just show the parent to avoid confusion }} + + {{/each}} +
+
+ {{else}} + + + + + + + + + + {{#each category.serializedSubcategories as |subCategory|}} + + {{else}} + {{! No subcategories... so just show the parent to avoid confusion }} + + {{/each}} + +
+ + {{html-safe + category.stat + }} + {{i18n "categories.topics"}}{{i18n "categories.latest"}}
+ {{/if}} {{/each}} \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/subcategories-with-featured-topics.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/subcategories-with-featured-topics.hbs deleted file mode 100644 index dbd77d2a9bf..00000000000 --- a/app/assets/javascripts/discourse/app/templates/mobile/components/subcategories-with-featured-topics.hbs +++ /dev/null @@ -1,18 +0,0 @@ -{{#each this.categories as |category|}} -
-
- - {{html-safe - category.stat - }} -
-
- {{#each category.serializedSubcategories as |subCategory|}} - - {{else}} - {{! No subcategories... so just show the parent to avoid confusion }} - - {{/each}} -
-
-{{/each}} \ No newline at end of file