From ac02190659e304201ac28642881d87aba6001bda Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 16 Dec 2023 04:27:32 +0400 Subject: [PATCH] A proper check for a service status. --- web/templates/about.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates/about.pug b/web/templates/about.pug index 7e8e1e7..956ee9d 100755 --- a/web/templates/about.pug +++ b/web/templates/about.pug @@ -15,7 +15,7 @@ block nav h1 About mixin isServiceUp(header, service) - if (services[service]) + if v, ok := services[service]; ok && v h3.service-up= header else h3.service-down= header