From 50df0f7b61462a6bfad9e74f7c7917c6b19d4b92 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Wed, 2 Oct 2024 17:26:41 -0400 Subject: Add first pass at dashboard --- templates/base.html | 12 ++++++++++++ templates/dashboard/dashboard.html | 7 +++++++ templates/dashboard/server_logs.html | 0 templates/dashboard/server_status.html | 15 +++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/dashboard/dashboard.html create mode 100644 templates/dashboard/server_logs.html create mode 100644 templates/dashboard/server_status.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..768d7eb --- /dev/null +++ b/templates/base.html @@ -0,0 +1,12 @@ + + + + + + {{ block "head" . }}Nonsense Time Dashboard{{ end }} + + + + {{ block "body" . }}{{ end }} + + 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" }} +

Dashboard Home

+

Welcome to the Dashboard! It is still under construction so please be patient :)

+
+ {{template "server_status" . }} +
+{{ end }} diff --git a/templates/dashboard/server_logs.html b/templates/dashboard/server_logs.html new file mode 100644 index 0000000..e69de29 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"}} +
+

Server Status

+
+
+
Url
+
{{ .ServerStatus.Site }}
+
Online
+
{{ .ServerStatus.Online }}
+
Timestamp
+
{{ .ServerStatus.Timestamp }}
+
+
+
+{{end}} -- cgit v1.2.3