feat: status page + maintenance

This commit is contained in:
mco-system 2023-05-27 16:55:00 +11:00
parent b183059f85
commit c969dc0e2d
3 changed files with 4 additions and 4 deletions

View File

@ -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
);
}

View File

@ -56,7 +56,7 @@
font-weight: normal;
}
.container_log {
text-align: left;
}
.button {
font-weight: bold;

View File

@ -31,7 +31,7 @@ Content-type: text/html
</div>
</div>
<div class="container_log" id="logs">
{{ container.logs }}
{{ container.logs | safe }}
</div>
{% endfor %}
</div>