From 4bc6165258cd7b5b76ccb01aa75c7cefdc35d143 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 17 Jan 2026 23:17:49 -0800 Subject: feat: Initial commit --- internal/server/templates/index.html | 357 +++++++++++++++++++++++++++++++++++ 1 file changed, 357 insertions(+) create mode 100644 internal/server/templates/index.html (limited to 'internal/server/templates') diff --git a/internal/server/templates/index.html b/internal/server/templates/index.html new file mode 100644 index 0000000..c351c73 --- /dev/null +++ b/internal/server/templates/index.html @@ -0,0 +1,357 @@ + + + + + + {{.Site.Name}} + + {{if .Site.Favicon}}{{end}} + + + + +
+ +
+
+
+ {{if .Site.Logo}} + Logo + {{end}} +
+

{{.Site.Name}}

+

{{.Site.Description}}

+
+
+ {{if .ShowThemeToggle}} + + {{end}} +
+
+ + +
+
+
+
+ {{if eq .OverallStatus "All Systems Operational"}} +
+ {{else if eq .OverallStatus "Partial Outage"}} +
+ {{else}} +
+ {{end}} +
+ {{.OverallStatus}} +
+ {{.CurrentTime}} +
+
+ + +
+ {{range $groupIndex, $group := .Groups}} +
+
+
+
+ + + +

{{$group.Name}}

+
+ {{if $group.ShowGroupUptime}} + {{formatUptime $group.GroupUptime}} + {{end}} +
+
+
+ {{range .Monitors}} +
+
+
+
+ {{if eq .Status "up"}} +
+ {{else if eq .Status "degraded"}} +
+ {{else if eq .Status "down"}} +
+ {{else}} +
+ {{end}} + {{.Name}} + {{.Type}} +
+
+ {{formatDuration .ResponseTime}} + {{if gt .SSLDaysLeft 0}} + SSL: {{.SSLDaysLeft}}d + {{end}} + {{if .LastError}} + {{if .LastError}}{{.LastError}}{{end}} + {{end}} +
+
+
+ {{formatUptime .UptimePercent}} +
+
+ +
+ {{range .Ticks}} +
+ {{else}} + {{range seq $.TickCount}} +
+ {{end}} + {{end}} +
+
+ {{end}} +
+
+ {{end}} +
+ + + {{if .Incidents}} +
+

Incidents

+
+ {{range .Incidents}} +
+
+
+
+
+ {{if eq .Status "resolved"}} + + + + {{else if eq .Status "scheduled"}} + + + + {{else}} + + + + {{end}} + {{.Title}} +
+

{{.Message}}

+ {{if .IsScheduled}} +

+ Scheduled: {{if .ScheduledStart}}{{formatTime .ScheduledStart}}{{end}} - {{if .ScheduledEnd}}{{formatTime .ScheduledEnd}}{{end}} +

+ {{end}} +
+
+ + {{.Status}} + +
+
+
+ {{if .Updates}} +
+ {{range .Updates}} +
+
+ {{.Status}} + {{formatTime .Time}} +
+

{{.Message}}

+
+ {{end}} +
+ {{end}} +
+ {{end}} +
+
+ {{end}} + + +
+
+ Updated {{timeAgo .LastUpdated}} + Powered by Kaze +
+
+
+ + +
+ + + + -- cgit v1.2.3