aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/templates/dashboard
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-10-02 17:26:41 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-10-02 17:27:46 -0400
commit50df0f7b61462a6bfad9e74f7c7917c6b19d4b92 (patch)
tree50f478d0cacfcb57acdc8edd0f357db304b249ae /templates/dashboard
parente8d9040688925304edad469d92518da84e1b8d96 (diff)
Add first pass at dashboard
Diffstat (limited to 'templates/dashboard')
-rw-r--r--templates/dashboard/dashboard.html7
-rw-r--r--templates/dashboard/server_logs.html0
-rw-r--r--templates/dashboard/server_status.html15
3 files changed, 22 insertions, 0 deletions
diff --git a/templates/dashboard/dashboard.html b/templates/dashboard/dashboard.html
new file mode 100644
index 0000000..29a852e
--- /dev/null
+++ b/templates/dashboard/dashboard.html
@@ -0,0 +1,7 @@
+{{ define "body" }}
+<h1>Dashboard Home</h1>
+<p>Welcome to the Dashboard! It is still under construction so please be patient :) </p>
+<main>
+ {{template "server_status" . }}
+</main>
+{{ end }}
diff --git a/templates/dashboard/server_logs.html b/templates/dashboard/server_logs.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/templates/dashboard/server_logs.html
diff --git a/templates/dashboard/server_status.html b/templates/dashboard/server_status.html
new file mode 100644
index 0000000..8019659
--- /dev/null
+++ b/templates/dashboard/server_status.html
@@ -0,0 +1,15 @@
+{{define "server_status"}}
+<section class="server-status">
+ <h2>Server Status</h2>
+ <div id=uptime>
+ <dl>
+ <dt>Url</dt>
+ <dd>{{ .ServerStatus.Site }}</dd>
+ <dt>Online</dt>
+ <dd>{{ .ServerStatus.Online }}</dd>
+ <dt>Timestamp</dt>
+ <dd>{{ .ServerStatus.Timestamp }}</dd>
+ </dl>
+ </div>
+</section>
+{{end}}