Skip to content

Commit

Permalink
Modified HTML5 templates to include version info
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
  • Loading branch information
gridhead committed Mar 2, 2021
1 parent 565fa9b commit 8a9208a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
8 changes: 2 additions & 6 deletions static/jscn/termpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion templates/e403page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
Expand Down Expand Up @@ -63,6 +63,7 @@ <h3 class="condqant text-center">Access denied</h3>
<button type="button" class="btn btn-default btn-sm" onclick="document.location.href = '/'">Login</button>
<button type="button" class="btn btn-default btn-sm" onclick="window.history.back()">Go back</button>
</div>
<p class="text-center mt-4 text-bold">SuperVisor {{ frntvers }}</p>
</div>
</section>
</body>
Expand Down
3 changes: 2 additions & 1 deletion templates/e404page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
Expand Down Expand Up @@ -63,6 +63,7 @@ <h3 class="condqant text-center">Resource not found</h3>
<button type="button" class="btn btn-default btn-sm" onclick="document.location.href = '/dashbord/'">Dashboard</button>
<button type="button" class="btn btn-default btn-sm" onclick="window.history.back()">Go back</button>
</div>
<p class="text-center mt-4 text-bold">SuperVisor {{ frntvers }}</p>
</div>
</section>
</body>
Expand Down
3 changes: 2 additions & 1 deletion templates/e500page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
Expand Down Expand Up @@ -63,6 +63,7 @@ <h3 class="condqant text-center">Internal server error</h3>
<button type="button" class="btn btn-default btn-sm" onclick="document.location.href = '/dashbord/'">Dashboard</button>
<button type="button" class="btn btn-default btn-sm" onclick="window.history.back()">Go back</button>
</div>
<p class="text-center mt-4 text-bold">SuperVisor {{ frntvers }}</p>
</div>
</section>
</body>
Expand Down
4 changes: 2 additions & 2 deletions templates/frameset.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
Expand Down Expand Up @@ -136,7 +136,7 @@
</section>
</div>
<footer class="main-footer">
<div class="float-right d-none d-sm-inline">v1.1.0-beta</div>
<div class="float-right d-none d-sm-inline">{{ frntvers }}</div>
<strong data-widget="pushmenu" href="#">SuperVisor</strong>
</footer>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/logepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
Expand Down Expand Up @@ -79,7 +79,7 @@
</form>
<br/>
<p class="mb-1" style="text-align: center;" id="versinfo">
v1.1.0-beta
{{ frntvers }}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/termpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SuperVisor v1.1.0-beta</title>
<title>SuperVisor {{ frntvers }}</title>
<link rel="stylesheet" href="{{ url_for("static", filename="css3/fontsome.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/adminlte.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css3/custfrmt.css") }}">
Expand Down

0 comments on commit 8a9208a

Please sign in to comment.