Fix "ShowIfOperational" behavior

This commit is contained in:
dvdandroid 2024-08-29 15:47:40 +02:00
parent 88452c0ae3
commit 39fb20853b

View file

@ -32,7 +32,7 @@
{{ end }}
<a href="{{ .URL }}" class="bookmarks-link {{ if .HideArrow }}bookmarks-link-no-arrow {{ end }}color-highlight size-h4" {{ if not .SameTab }}target="_blank"{{ end }} rel="noreferrer">{{ .Title }}</a>
{{ if .StatusPage }}
<div class="notice-icon notice-icon-{{ .StatusPage.StatusPageInfo.StatusResponse.Indicator }} {{ if not .StatusPage.ShowIfOperational }} hidden {{ end }}" title="{{ .StatusPage.StatusPageInfo.StatusResponse.Description }}"></div>
<div class="notice-icon notice-icon-{{ .StatusPage.StatusPageInfo.StatusResponse.Indicator }} {{ if and (not .StatusPage.ShowIfOperational) (eq .StatusPage.StatusPageInfo.StatusResponse.Indicator "none") }}hidden{{ end }}" title="{{ .StatusPage.StatusPageInfo.StatusResponse.Description }}"></div>
{{ end}}
</li>
{{ end }}