aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-08-07 00:58:33 +0700
committerShulhan <ms@kilabit.info>2025-08-07 00:58:33 +0700
commitd34a7d3def91fb614fb657b81ff8265f19e078c8 (patch)
treedee34fd1f82804135fcc42f926080bfe63dce562 /server.go
parent7bc81d176ca46837c2dfd541e0a06704eaefbebb (diff)
downloadlilin-d34a7d3def91fb614fb657b81ff8265f19e078c8.tar.xz
_www: improve the layout a little bit
Add a background color for section "Service status" and "Down history" to highlight it with other text. Add background color for service that is down in "Service status".
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.go b/server.go
index 1741c27..ef8fabf 100644
--- a/server.go
+++ b/server.go
@@ -113,6 +113,12 @@ func (srv *Server) initTemplate() (err error) {
}
return ver
},
+ `statusString`: func(success bool) string {
+ if success {
+ return "UP"
+ }
+ return "DOWN"
+ },
})
var tmplraw []byte