diff --git a/app/assets/javascripts/discourse/app/components/discovery/layout.hbs b/app/assets/javascripts/discourse/app/components/discovery/layout.hbs index ab8d10777a4..d48ab8294c8 100644 --- a/app/assets/javascripts/discourse/app/components/discovery/layout.hbs +++ b/app/assets/javascripts/discourse/app/components/discovery/layout.hbs @@ -1,28 +1,37 @@
- {{#if @category}} + {{#if @model.category}} {{/if}}
- +
{{yield to="navigation"}}
- +
@@ -31,26 +40,43 @@ {{yield to="header"}}
- +
- {{yield to="list"}} + @name="discovery-list-area" + @outletArgs={{hash + category=@model.category + tag=@model.tag + model=@model + }} + @defaultGlimmer={{true}} + > + + {{yield to="list"}} +
- + \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/components/discovery/navigation.hbs b/app/assets/javascripts/discourse/app/components/discovery/navigation.hbs index b85fe2e9a9b..9535ebd0390 100644 --- a/app/assets/javascripts/discourse/app/components/discovery/navigation.hbs +++ b/app/assets/javascripts/discourse/app/components/discovery/navigation.hbs @@ -3,7 +3,7 @@ {{#if @category}}
@@ -18,7 +18,7 @@
diff --git a/app/assets/javascripts/discourse/app/components/discovery/topics.hbs b/app/assets/javascripts/discourse/app/components/discovery/topics.hbs index 4144978714d..4b73aab621e 100644 --- a/app/assets/javascripts/discourse/app/components/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/app/components/discovery/topics.hbs @@ -114,46 +114,56 @@
{{#if this.allLoaded}} - - - - {{#if @tag}} - {{html-safe - (i18n "topic.browse_all_tags_or_latest" basePath=(base-path)) - }} - {{else if this.latest}} - {{#if @category.canCreateTopic}} - + + + + {{#if @tag}} + {{html-safe + (i18n "topic.browse_all_tags_or_latest" basePath=(base-path)) + }} + {{else if this.latest}} + {{#if @category.canCreateTopic}} + + {{/if}} + {{else if this.top}} + {{html-safe + (i18n + "topic.browse_all_categories_latest_or_top" basePath=(base-path) + ) + }} + + {{else}} + {{html-safe + (i18n "topic.browse_all_categories_latest" basePath=(base-path)) + }} {{/if}} - {{else if this.top}} - {{html-safe - (i18n - "topic.browse_all_categories_latest_or_top" basePath=(base-path) - ) - }} - - {{else}} - {{html-safe - (i18n "topic.browse_all_categories_latest" basePath=(base-path)) - }} - {{/if}} - + + {{/if}}
\ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs index 5104e9c4cd6..bc77a36ffc2 100644 --- a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs +++ b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs @@ -1,4 +1,4 @@ - + <:navigation> + <:navigation> <:navigation>