From 4f23207bb5703bb6672e793c5796f70ee93a479b Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 1 Jul 2024 15:12:13 -0700 Subject: [PATCH] Support setting banner message --- binderhub/main.py | 1 + binderhub/static/js/App.jsx | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/binderhub/main.py b/binderhub/main.py index 792d038e4..e42ee8c2d 100644 --- a/binderhub/main.py +++ b/binderhub/main.py @@ -25,6 +25,7 @@ def get(self): "logoWidth": "320px", "repoProviders": repoproviders_display_config, "aboutMessage": self.settings["about_message"], + "bannerHtml": self.settings["banner_message"], "binderVersion": binder_version, } self.render_template( diff --git a/binderhub/static/js/App.jsx b/binderhub/static/js/App.jsx index 42e3a74bb..14428e169 100644 --- a/binderhub/static/js/App.jsx +++ b/binderhub/static/js/App.jsx @@ -80,14 +80,22 @@ const router = createBrowserRouter( ); function App() { return ( -
-
-
- + <> + {PAGE_CONFIG.bannerHtml && ( +
+ )} +
+
+
+ +
+
-
-
+ ); }