From 8a9208aa993d6628d2b495e45fb7e0603e56f1b5 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Tue, 2 Mar 2021 11:35:16 +0530 Subject: [PATCH] Modified HTML5 templates to include version info Signed-off-by: Akashdeep Dhar --- static/jscn/termpage.js | 8 ++------ templates/e403page.html | 3 ++- templates/e404page.html | 3 ++- templates/e500page.html | 3 ++- templates/frameset.html | 4 ++-- templates/logepage.html | 4 ++-- templates/termpage.html | 2 +- 7 files changed, 13 insertions(+), 14 deletions(-) diff --git a/static/jscn/termpage.js b/static/jscn/termpage.js index c504284..a101922 100644 --- a/static/jscn/termpage.js +++ b/static/jscn/termpage.js @@ -36,11 +36,9 @@ function make_terminal(element, size, ws_url, contiden) { document.title = title; }); term.open(element); - term.write("\u001b[33m\u001b[1m" + "SuperVisor v1.1.0-beta" + "\u001b[0m\u001b[0m" + + term.write("\u001b[33m\u001b[1m" + "SuperVisor Web Console" + "\u001b[0m\u001b[0m" + "\r\n" + "\u001b[32m" + "Please press BACK button to return to SUPERVISOR" + "\u001b[0m" + - "\r\n" + - "\u001b[32m" + "Closing this tab will LOG you out of your current session" + "\u001b[0m" + "\r\n\r\n" ); if (contiden.length === 64) { @@ -75,9 +73,7 @@ function make_terminal(element, size, ws_url, contiden) { "\u001b[32m" + "Please press BACK button to return to SUPERVISOR" + "\u001b[0m" + - "\r\n" + - "\u001b[32m" + "Closing this tab will LOG you out of your current session" + - "\u001b[0m" + "\r\n" ); break; } diff --git a/templates/e403page.html b/templates/e403page.html index 076acca..9898c7a 100644 --- a/templates/e403page.html +++ b/templates/e403page.html @@ -24,7 +24,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }} @@ -63,6 +63,7 @@

Access denied

+

SuperVisor {{ frntvers }}

diff --git a/templates/e404page.html b/templates/e404page.html index beb46e0..2e686be 100644 --- a/templates/e404page.html +++ b/templates/e404page.html @@ -24,7 +24,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }} @@ -63,6 +63,7 @@

Resource not found

+

SuperVisor {{ frntvers }}

diff --git a/templates/e500page.html b/templates/e500page.html index 7cc2eb2..b89e4b8 100644 --- a/templates/e500page.html +++ b/templates/e500page.html @@ -24,7 +24,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }} @@ -63,6 +63,7 @@

Internal server error

+

SuperVisor {{ frntvers }}

diff --git a/templates/frameset.html b/templates/frameset.html index ecda2c0..3a818d8 100644 --- a/templates/frameset.html +++ b/templates/frameset.html @@ -3,7 +3,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }} @@ -136,7 +136,7 @@
-
v1.1.0-beta
+
{{ frntvers }}
SuperVisor
diff --git a/templates/logepage.html b/templates/logepage.html index 73aaea9..ecc86b4 100644 --- a/templates/logepage.html +++ b/templates/logepage.html @@ -24,7 +24,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }} @@ -79,7 +79,7 @@

- v1.1.0-beta + {{ frntvers }}

diff --git a/templates/termpage.html b/templates/termpage.html index e024a70..50893bf 100644 --- a/templates/termpage.html +++ b/templates/termpage.html @@ -33,7 +33,7 @@ - SuperVisor v1.1.0-beta + SuperVisor {{ frntvers }}