add server status page
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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`}}
|
||||
|
25
res/template/server_status.html
Normal file
25
res/template/server_status.html
Normal 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}}
|
@@ -120,6 +120,7 @@ func New(
|
||||
{GET, "hosting" /* */, wc.serveMarkdown("hosting.md", false)},
|
||||
{GET, "brave" /* */, wc.serveMarkdown("brave.md", false)},
|
||||
{GET, "acknowledgements" /**/, wc.serveMarkdown("acknowledgements.md", false)},
|
||||
{GET, "server_status" /* */, wc.serveTemplate("server_status", false)},
|
||||
|
||||
// User account pages
|
||||
{GET, "register" /* */, wc.serveForm(wc.registerForm, false)},
|
||||
|
Reference in New Issue
Block a user