From c969dc0e2d8623686fb2a32c249699228585ee72 Mon Sep 17 00:00:00 2001 From: mco-system Date: Sat, 27 May 2023 16:55:00 +1100 Subject: [PATCH] feat: status page + maintenance --- maintenance/scripts/maintenance.js | 4 ++-- maintenance/style/maintenance.css | 2 +- maintenance/templates/status.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/scripts/maintenance.js b/maintenance/scripts/maintenance.js index 2ccefeb..c9ea850 100644 --- a/maintenance/scripts/maintenance.js +++ b/maintenance/scripts/maintenance.js @@ -5,9 +5,9 @@ function reboot() { document.getElementById("logs").innerHTML = this.responseText; } }; - xhttp.open("GET", "https://www.thsf.net/maintenance/reboot.py", true); + xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true); xhttp.send(); setTimeout(function () { - document.location="https://www.thsf.net/maintenance/status.py"}, 5000 + document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000 ); } diff --git a/maintenance/style/maintenance.css b/maintenance/style/maintenance.css index faaf1d8..64a26b9 100644 --- a/maintenance/style/maintenance.css +++ b/maintenance/style/maintenance.css @@ -56,7 +56,7 @@ font-weight: normal; } .container_log { - + text-align: left; } .button { font-weight: bold; diff --git a/maintenance/templates/status.html b/maintenance/templates/status.html index ab60be7..ddbb64b 100644 --- a/maintenance/templates/status.html +++ b/maintenance/templates/status.html @@ -31,7 +31,7 @@ Content-type: text/html
- {{ container.logs }} + {{ container.logs | safe }}
{% endfor %}