{{ 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 }}
{{ else }}{{ end }}
{{ end }}
{{ $systems := .Site.Params.systems }} {{ range $index, $systems }} {{ $activeComponentIssues := where $active "Params.affected" "intersect" (slice .) }} {{ $thisIsNotice := where $activeComponentIssues "Params.severity" "=" "notice" }} {{ $thisIsDisrupted := where $activeComponentIssues "Params.severity" "=" "disrupted" }} {{ $thisIsDown := where $activeComponentIssues "Params.severity" "=" "down" }}
{{ $this := . }} {{ . }} {{ if $thisIsDown }} Down {{ else }} {{ if $thisIsDisrupted }} Disrupted {{ else }} {{ if $thisIsNotice }} Maintenance {{ else }} Operational {{ end }}{{ end }}{{ end }}
{{ end }}
Incidents Uptime
{{ 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" . }}