commit
9ccdacc1d9
@ -1,6 +1,6 @@
|
|||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
|
|
||||||
{{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }}
|
{{ $incidents := where .Site.RegularPages.ByDate.Reverse "Section" "incidents" }}
|
||||||
{{ $active := where $incidents "Params.resolved" "!=" true }}
|
{{ $active := where $incidents "Params.resolved" "!=" true }}
|
||||||
|
|
||||||
{{ partial "systems" (dict "content" . "incidents" $active) }}
|
{{ partial "systems" (dict "content" . "incidents" $active) }}
|
||||||
|
@ -6,9 +6,10 @@
|
|||||||
<div class="incident-description">
|
<div class="incident-description">
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
</div>
|
</div>
|
||||||
{{- $alert := index .Site.Data.severity.alerts .Params.severity -}}
|
{{- $severity := .Params.severity | default "under-maintenance" -}}
|
||||||
|
{{- $alert := index .Site.Data.severity.alerts $severity -}}
|
||||||
|
|
||||||
<p class="incident-status color-{{ $alert }}">
|
<p class="incident-status color-{{ $alert }}">
|
||||||
{{ index .Site.Data.severity.descriptions .Params.severity }}
|
{{ index .Site.Data.severity.descriptions $severity }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user