diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-02 17:26:41 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-08 15:21:16 -0400 |
| commit | fc9d3f4dfea54fb8cad3dda316295a25a2e08056 (patch) | |
| tree | 825b16e2c72b19536e9042c98c13127690dd5c52 /templates | |
| parent | 621e78947eb1c4607ce8e6bf5ce133d4927b3cf2 (diff) | |
Add first pass at dashboard
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 12 | ||||
| -rw-r--r-- | templates/dashboard/dashboard.html | 7 | ||||
| -rw-r--r-- | templates/dashboard/server_logs.html | 0 | ||||
| -rw-r--r-- | templates/dashboard/server_status.html | 15 |
4 files changed, 34 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html lang=en> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{ block "head" . }}<title>Nonsense Time Dashboard</title>{{ end }} + <link rel="stylesheet" href="/static/styles.css"> +</head> +<body> + {{ block "body" . }}{{ end }} +</body> +</html> 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}} |
