diff options
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}} |
