aboutsummaryrefslogtreecommitdiff
path: root/_www/index.tmpl
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-07-31 20:00:28 +0700
committerShulhan <ms@kilabit.info>2025-07-31 20:00:28 +0700
commitbec99d46d65c451f18000a7247d3df06765a3894 (patch)
treead1d073ac7bcc2fc5d76c5c550c672f2a4552302 /_www/index.tmpl
parent9998582575aa02dbd2206497953f207af1f117d2 (diff)
downloadlilin-bec99d46d65c451f18000a7247d3df06765a3894.tar.xz
all: implement worker start and stop
The start method run all the services scanner in the background and consume the report from it from channel. Each time new report coming it will notify the Server to update the index page body.
Diffstat (limited to '_www/index.tmpl')
-rw-r--r--_www/index.tmpl17
1 files changed, 14 insertions, 3 deletions
diff --git a/_www/index.tmpl b/_www/index.tmpl
index 250843d..f7cebda 100644
--- a/_www/index.tmpl
+++ b/_www/index.tmpl
@@ -6,10 +6,21 @@
<title>{{.Title}}</title>
</head>
<body>
- {{range .Services}}
+ <h2>{{.Title}}</h2>
+ {{ range.Services }}
<div>
- <div>{{.Name}}</div>
+ <div>
+ <span>{{.Name}}</span>
+ {{if .Last.Success}}
+ <span class="success"> OK </span>
+ {{else}}
+ <span class="fail"> FAIL </span>
+ {{ end }}
+ </div>
+ {{if not .Last.Success}}
+ <div>{{.Last.At}}: {{ .Last.Error }}</div>
+ {{ end }}
</div>
- {{end}}
+ {{ end }}
</body>
</html>