From 7bc81d176ca46837c2dfd541e0a06704eaefbebb Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 6 Aug 2025 10:10:00 +0700 Subject: _www: add basic style for status page --- _www/index.tmpl | 65 +++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/_www/index.tmpl b/_www/index.tmpl index cf710db..614b67c 100644 --- a/_www/index.tmpl +++ b/_www/index.tmpl @@ -5,35 +5,74 @@ {{.Title}} +

{{.Title}}

Service status

+
+ At + Service + Status + Error +
{{ range.Services }} -
-
- {{.Name}} +
+ {{if .Last.At}}{{.Last.At}}{{ end }} + {{.Name}} + {{if .Last.Success}} - OK + UP {{else}} - FAIL + DOWN {{ end }} -
- {{if not .Last.Success}} -
{{.Last.At}}: {{ .Last.Error }}
- {{ end }} + + {{if .Last.Error}}{{ .Last.Error }}{{ end }}
{{ end }}
-

Fail history

-
+

Down history

+
+
+ At + Service + Status + Error +
{{ $list := reverse .Fail }} {{ range $list }} -
- {{ .Name }} +
{{ .At }} + {{ .Name }} + DOWN {{ .Error }}
{{ end }} -- cgit v1.3