DEV: Add a plugin outlet for top-side notices.

DEV: Add a plugin outlet for top-side notices.

From b65e5d263ef47337a167b1a01eb4bcfd8e80cf23 Mon Sep 17 00:00:00 2001
From: Dan Ungureanu <dan@ungureanu.me>
Date: Mon, 22 Oct 2018 19:24:28 +0300
Subject: [PATCH] DEV: Add a plugin outlet for top-side notices.


diff --git a/app/assets/javascripts/discourse/templates/application.hbs b/app/assets/javascripts/discourse/templates/application.hbs
index c2b4d4a..2fd8440 100644
--- a/app/assets/javascripts/discourse/templates/application.hbs
+++ b/app/assets/javascripts/discourse/templates/application.hbs
@@ -18,6 +18,7 @@
     {{notification-consent-banner}}
     {{global-notice}}
     {{create-topics-notice}}
+    {{plugin-outlet name="top-notices" args=(hash currentPath=currentPath)}}
   </div>
   {{outlet}}
   {{outlet "user-card"}}

GitHub

1 Like