{{ 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 }} {{ T "isDown" }} {{ else }} {{ if $isDisrupted }} {{ T "isDisrupted" }} {{ else }} {{ if $isNotice }} {{ T "isNotice" }} {{ else }} {{ T "isOk" }} {{ end }}{{ end }}{{ end }}
{{ if $active }}
{{ range $active }}

{{ .Title }}

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

{{ T "continueReading" }}

{{ else }}{{ end }}
{{ end }} {{ if .Site.Params.autoRefresh }}
{{ T "autoRefreshNotice" }}
{{ else }}
{{ end }}
{{ $systems := .Site.Params.systems }} {{ range $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" }}
{{ .name }} {{ with .description }}   (?) {{ . }} {{ end }} {{ if $thisIsDown }} {{ T "thisIsDown" }} {{ else }} {{ if $thisIsDisrupted }} {{ T "thisIsDisrupted" }} {{ else }} {{ if $thisIsNotice }} {{ T "thisIsNotice" }} {{ else }} {{ T "thisIsOk" }} {{ end }}{{ end }}{{ end }} {{ with .partial }}
{{ partial . . }}
{{ end }}
{{ end }}
{{ if .Site.Params.enableCustomHTML }} {{ partial "custom/homepage-summary" . }} {{ end }}
{{ if .Site.Params.customTabs }}
{{ T "incidents" }} {{ range .Site.Params.customTabs }} {{ .name }} {{ end }}
{{ else }}

{{ T "incidentHistory" }}


{{ end }}
{{ if not $incidents }}

{{ T "calmBeforeTheStorm" }}

{{ T "noIncidentsDesc" }}

{{ else }} {{ $paginator := .Paginate $incidents .Site.Params.incidentPostsPerPage }} {{ range $paginator.Pages }} {{ .Render "small" }} {{ end }} {{ if gt $paginator.TotalPages 1 }}
{{ if $paginator.HasPrev }} ⭠   {{ T "prev" }} {{ else }} ⭠   {{ T "prev" }} {{ end }}     {{ $paginator.PageNumber }} / {{ $paginator.TotalPages }}     {{ if $paginator.HasNext }} {{ T "next" }}   ⭢ {{ else }} {{ T "next" }}   ⭢ {{ end }}
{{ end }} {{ end }}
{{ partial "js" . }} {{ partial "footer" . }}