From 2c59356fa9e268d8ccf99dc09430cf3430f92b7a Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 3 Sep 2020 20:29:12 -0600 Subject: [PATCH] Add warning/disclaimer message to main screen --- www/pages/home.html | 4 ++++ www/routes.js | 3 ++- www/settings_dev.js | 3 ++- www/settings_prod.js | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/www/pages/home.html b/www/pages/home.html index c8aa5e5..864a61e 100644 --- a/www/pages/home.html +++ b/www/pages/home.html @@ -53,6 +53,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. {{/each}} + +
+ {{mainscreenmessage}} +
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index 6ecff8a..42413b8 100644 --- a/www/routes.js +++ b/www/routes.js @@ -14,7 +14,8 @@ var routes = [ templateUrl: "pages/home.html", }, { context: { - machinehistory: getMachineSearchHistory().reverse() + machinehistory: getMachineSearchHistory().reverse(), + mainscreenmessage: SETTINGS.mainscreenmessage } }); } diff --git a/www/settings_dev.js b/www/settings_dev.js index beb6576..5e6ea91 100644 --- a/www/settings_dev.js +++ b/www/settings_dev.js @@ -8,5 +8,6 @@ var SETTINGS = { synckeyblacklist: [], apiserver: "http://localhost/machinemanager/api/", - loginurl: "https://localhost/login/" + loginurl: "https://localhost/login/", + mainscreenmessage: "Deployed in test configuration" } diff --git a/www/settings_prod.js b/www/settings_prod.js index 17aa6e8..7f11a83 100644 --- a/www/settings_prod.js +++ b/www/settings_prod.js @@ -8,5 +8,6 @@ var SETTINGS = { synckeyblacklist: [], apiserver: "https://track.netsyms.com/api/", - loginurl: "https://track.netsyms.com/api/login/" + loginurl: "https://track.netsyms.com/api/login/", + mainscreenmessage: "NOTICE: You are accessing a Netsyms Technologies internal system that allows viewing and editing confidential, privileged, and sensitive information. Unauthorized access is a federal crime." }