From e03b3b751a04ba1bb9058958fafc352fc769b9a3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 16 Feb 2021 16:44:54 +0530 Subject: [PATCH] add support for a home page notice via application_config.js --- customize.dist/pages/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index 71787a435..5602e79a8 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -120,6 +120,11 @@ define([ ]) ]; + var notice; + if (AppConfig.homeNotice) { + notice = h('div.alert.alert-info', h('span', AppConfig.homeNotice)); + } + return [ h('div#cp-main', [ Pages.infopageTopbar(), @@ -138,6 +143,7 @@ define([ icons, ]) ]), + notice, blocks ]), Pages.infopageFooter(),