From 9bc981c193910e2fadbd84e74ed12c09bae681b8 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Thu, 23 Nov 2023 21:57:23 +0100 Subject: [PATCH] Go-isms --- layouts/affected/list.badge | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/affected/list.badge b/layouts/affected/list.badge index 2de428ef..d070cffe 100644 --- a/layouts/affected/list.badge +++ b/layouts/affected/list.badge @@ -3,17 +3,17 @@ {{ $status_text := "OK" -}} {{ $status_error := false -}} {{ if $isDown -}} - {{ $status_text := "Important message" -}} - {{ $status_error := true -}} + {{ $status_text = "Important message" -}} + {{ $status_error = true -}} {{ $status_color = .Site.Params.badge_down -}} {{ else if $isDisrupted -}} - {{ $status_text := "Notice" -}} - {{ $status_error := true -}} - {{ $status_color = .Site.Params.disrupted -}} + {{ $status_text = "Notice" -}} + {{ $status_error = true -}} + {{ $status_color = .Site.Params.badge_disrupted -}} {{ else if $isNotice -}} - {{ $status_text := "Notice" -}} - {{ $status_error := true -}} - {{ $status_color = .Site.Params.notice -}} + {{ $status_text = "Notice" -}} + {{ $status_error = true -}} + {{ $status_color = .Site.Params.badge_notice -}} {{ end -}} { "schemaVersion": 1,