{{ partial "meta" . }} {{ $incidents := where .Site.RegularPages "Params.section" "issue" }} {{ $active := where $incidents "Params.resolved" "=" false }} {{ $isNotice := where $active "Params.severity" "=" "notice" }} {{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }} {{ $isDown := where $active "Params.severity" "=" "down" }} {{ partial "header" . }}
{{ if $isDown }} Experiencing major issues {{ else }} {{ if $isDisrupted }} Experiencing disruptions {{ else }} {{ if $isNotice }} Please read announcement {{ else }} All systems operational {{ end }}{{ end }}{{ end }}
{{ if $active }}
{{ range $active }}

{{ .Title }}

{{ .Content | safeHTML | truncate 500 "…" }}

Continue reading

{{ else }}{{ end }}
{{ end }}
{{ $systems := .Site.Params.systems }} {{ range $index, $systems }} {{ $activeComponentIssues := where $active "Params.affected" "intersect" (slice .name) }} {{ $thisIsNotice := where $activeComponentIssues "Params.severity" "=" "notice" }} {{ $thisIsDisrupted := where $activeComponentIssues "Params.severity" "=" "disrupted" }} {{ $thisIsDown := where $activeComponentIssues "Params.severity" "=" "down" }}
{{ $this := .name }} {{ .name }} {{ with .description }}   (?) {{ . }} {{ end }} {{ if $thisIsDown }} Down {{ else }} {{ if $thisIsDisrupted }} Disrupted {{ else }} {{ if $thisIsNotice }} Maintenance {{ else }} Operational {{ end }}{{ end }}{{ end }} {{ with .partial }}
{{ partial . . }}
{{ end }}
{{ end }}
Incidents {{ if .Site.Params.showUptime }} Uptime {{ end }} {{ range .Site.Params.customTabs }} {{ .name }} {{ end }}
{{ if not .Data.Pages }}

Looks like we do not have any incidents logged.

{{ else }} {{ range .Data.Pages }} {{ .Render "issue" }} {{ end }} {{ end }}
{{ partial "js" . }} {{ partial "footer" . }}