diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-31 20:00:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-07-31 20:00:28 +0700 |
| commit | bec99d46d65c451f18000a7247d3df06765a3894 (patch) | |
| tree | ad1d073ac7bcc2fc5d76c5c550c672f2a4552302 /_www/index.tmpl | |
| parent | 9998582575aa02dbd2206497953f207af1f117d2 (diff) | |
| download | lilin-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.tmpl | 17 |
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> |
