mirror of
https://github.com/linuxserver/cstate.git
synced 2026-02-20 07:55:25 +08:00
Go-isms
This commit is contained in:
parent
a65982a1e8
commit
9bc981c193
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user