add server status page

This commit is contained in:
2020-12-22 20:53:33 +01:00
parent bad27a7f35
commit 0b7515eccd
4 changed files with 28 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
<a href="/appearance">Appearance</a>
<a href="/api">API</a>
<a href="/acknowledgements">Acknowledgements</a>
<a href="/server_status">Server Status</a>
</div>
<script>
function toggleMenu() {

View File

@@ -18,6 +18,7 @@
<div id="uploaded_files" class="highlight_dark"></div>
</div></div>
{{template "page_bottom" .}}
</div>
<script>
let apiEndpoint = '{{.APIEndpoint}}';
{{template `util.js`}}

View File

@@ -0,0 +1,25 @@
{{define "server_status"}}<!DOCTYPE html>
<html lang="en">
<head>
{{template "meta_tags" "Server status"}}
{{template "user_style" .}}
<style>
.status_frame {
display: block;
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
{{template "page_menu" .}}
<div class="page_body" style="padding: 0; top: 0; bottom: 0;">
<iframe id="page_body" src="https://status.pixeldrain.com" class="status_frame"></iframe>
</div>
{{template "analytics"}}
</body>
</html>
{{end}}