{{ partial "meta" . }} {{ $title := .Title }}
{{ . }}
{{ end }} {{ end }} {{ end }} {{ if not .Site.Params.disableComplexCalculations }}{{ $resolved := first 5 (where .Pages "Params.resolved" "=" true) }} {{ if gt $resolved 0 }} {{ $.Scratch.Set "counter" 0 }} {{ range $resolved }} {{ $t := (time .Params.ResolvedWhen) }} {{ $timeDiff := (sub $t.Unix .Date.Unix) }} {{ $diffInMin := (div $timeDiff 60) }} {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") $diffInMin) }} {{ end }} {{ T "averageSystemsDowntime" }} {{ div ($.Scratch.Get "counter") (len $resolved) }} {{ T "averageSystemsDowntimeSecondPart" }} {{ end }}
{{ end }} {{ len .Pages }} {{ T "entries" }}, {{ T "newestToOldest" }}{{ T "noIncidentsDesc" }}
{{ else }} {{ $paginator := .Paginate $incidents .Site.Params.incidentPostsPerPage }} {{ range $paginator.Pages }} {{ .Render "small" }} {{ end }} {{ if gt $paginator.TotalPages 1 }}