Fix "ShowIfOperational" behavior
This commit is contained in:
parent
88452c0ae3
commit
39fb20853b
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue