From d14605d1388aaa7cc9ef1c230eae5ba14c9cef44 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 21 Apr 2024 18:46:40 -0700 Subject: initial commit --- templates/404.html | 7 +++++++ templates/backup_list.html | 27 +++++++++++++++++++++++++++ templates/base.html | 18 ++++++++++++++++++ templates/base_empty.html | 3 +++ 4 files changed, 55 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/backup_list.html create mode 100644 templates/base.html create mode 100644 templates/base_empty.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..35b43bb --- /dev/null +++ b/templates/404.html @@ -0,0 +1,7 @@ +{{ define "content" }} +

page not found

+

but hey, at least you found our witty 404 page. that's something, right?

+ +

go back home

+ +{{ end }} \ No newline at end of file diff --git a/templates/backup_list.html b/templates/backup_list.html new file mode 100644 index 0000000..82256b1 --- /dev/null +++ b/templates/backup_list.html @@ -0,0 +1,27 @@ +{{ define "content" }} + {{ if (eq (len .HostStatusOverTime) 0) }} + no backups yet! + {{ end }} + + {{ range $hostname, $backupList := .HostStatusOverTime }} +
{{ $hostname }}

+ + + {{ range $i, $_ := $backupList }} + + {{ end }} + + + {{ range $seen := $backupList }} + {{ if $seen }} + + {{ else }} + + {{ end }} + + {{ end }} + +
{{ $i }}
x!!
+


+ {{ end }} +{{ end }} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..c8766c0 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ +{{ define "base" }} + + + + backup notify + + + + + +
+ {{ template "content" . }} +
+ + +{{ end }} diff --git a/templates/base_empty.html b/templates/base_empty.html new file mode 100644 index 0000000..6191ab9 --- /dev/null +++ b/templates/base_empty.html @@ -0,0 +1,3 @@ +{{ define "base" }} + {{ template "content" . }} +{{ end }} \ No newline at end of file -- cgit v1.2.3-70-g09d2