From 8e6d95a30941501915d7b97c3b5d4de1f7905be0 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 30 May 2020 03:04:12 +0800 Subject: [PATCH] DEV: adds a few plugin outlets required for themes (#9929) --- .../discourse/app/templates/components/composer-toggles.hbs | 4 +++- .../javascripts/discourse/app/templates/discovery.hbs | 4 +++- .../discourse/app/templates/discovery/topics.hbs | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs index a9efe1f6d58..09509b0557c 100644 --- a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs @@ -1,4 +1,6 @@
+ {{plugin-outlet name="before-composer-toggles"}} + {{#if site.mobileView}} {{flat-button class="toggle-toolbar" @@ -19,4 +21,4 @@ action=toggleFullscreen title=fullscreenTitle}} {{/unless}} -
+ \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/discovery.hbs b/app/assets/javascripts/discourse/app/templates/discovery.hbs index ddec84d2346..b8c7f4dc36b 100644 --- a/app/assets/javascripts/discourse/app/templates/discovery.hbs +++ b/app/assets/javascripts/discourse/app/templates/discovery.hbs @@ -14,6 +14,8 @@ {{conditional-loading-spinner condition=loading}} + {{plugin-outlet name="discovery-above"}} +
@@ -34,4 +36,4 @@
{{plugin-outlet name="discovery-below"}} -{{/if}} +{{/if}} \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs index 2bb1379c80b..b793e261cb7 100644 --- a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs @@ -42,6 +42,8 @@ {{period-chooser period=period action=(action "changePeriod") fullDay=false}}
{{else}} + {{plugin-outlet name="before-topic-list" args=(hash category=category)}} + {{#if topicTrackingState.hasIncoming}}