2016-11-23 19:53:38 +02:00
|
|
|
{{ $okAlert := index .content.Site.Data.severity.alerts "ok"}}
|
|
|
|
{{ $okDesc := index .content.Site.Data.severity.descriptions "ok" }}
|
2016-11-22 00:52:41 +02:00
|
|
|
|
|
|
|
{{ with .content.Site.Params.systems }}
|
|
|
|
<div class="systems">
|
|
|
|
{{ range . }}
|
|
|
|
{{ $name := . }}
|
|
|
|
<div class="system-operational">
|
|
|
|
<div class="card">
|
|
|
|
{{ $name }}
|
|
|
|
|
|
|
|
{{ if $.incidents }}
|
|
|
|
{{ range $.incidents }}
|
|
|
|
{{ if in .Params.affectedsystems $name }}
|
2016-11-23 19:53:38 +02:00
|
|
|
{{ $alert := index .Site.Data.severity.alerts .Params.severity }}
|
|
|
|
{{ $desc := index .Site.Data.severity.descriptions .Params.severity }}
|
2016-11-22 00:52:41 +02:00
|
|
|
{{ partial "status-badge" (dict "alert" $alert "description" $desc) }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "status-badge" (dict "alert" $okAlert "description" $okDesc) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "status-badge" (dict "alert" $okAlert "description" $okDesc) }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|