Skip to content

A platform for community discussion. Free, open, simple.

DEV: adds a few plugin outlets required for themes (#9929)

Joe8e6d95a30941
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 @@
<div class="composer-controls">
+ {{plugin-outlet name="before-composer-toggles"}}
+
{{#if site.mobileView}}
{{flat-button
class="toggle-toolbar"
@@ -19,4 +21,4 @@
action=toggleFullscreen
title=fullscreenTitle}}
{{/unless}}
-</div>
+</div>
\ 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"}}
+
<div class="container list-container {{if loading "hidden"}}">
<div class="row">
<div class="full-width">
@@ -34,4 +36,4 @@
</div>
{{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}}
</div>
{{else}}
+ {{plugin-outlet name="before-topic-list" args=(hash category=category)}}
+
{{#if topicTrackingState.hasIncoming}}
<div class="show-more {{if hasTopics "has-topics"}}">
<a tabindex="0" href {{action "showInserted"}} class="alert alert-info clickable">
@@ -73,6 +75,8 @@
scrollOnLoad=true
onScroll=discoveryTopicList.saveScrollPosition}}
{{/if}}
+
+ {{plugin-outlet name="after-topic-list" args=(hash category=category)}}
{{/discovery-topics-list}}
<footer class="topic-list-bottom">
@@ -107,4 +111,4 @@
{{/footer-message}}
{{/if}}
-</footer>
+</footer>
\ No newline at end of file