From 88a199b6c0576a35bae67a241c20370b629dd7cd Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 24 Jul 2018 13:47:45 +0300 Subject: v2-rc1 --- layouts/uptime/single.html | 86 ---------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 layouts/uptime/single.html (limited to 'layouts/uptime') diff --git a/layouts/uptime/single.html b/layouts/uptime/single.html deleted file mode 100644 index cfad105..0000000 --- a/layouts/uptime/single.html +++ /dev/null @@ -1,86 +0,0 @@ -{{ 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" . }} - -
- -
-
- - Incidents - - - Uptime - -
-
- - {{ if not $active }} -
- - {{ $inactive := where $incidents "Params.resolved" "=" true }} - - {{ range $inactive }} - {{ $t := (time .Params.ResolvedWhen) }} - {{ $timeDiff := (sub $t.Unix .Date.Unix) }} - {{ $diffInMin := (div $timeDiff 60) }} - - {{ $.Scratch.Add "rackedUpDowntime" $timeDiff }} - {{ end }} - {{ $scratchValue := $.Scratch.Get "rackedUpDowntime" }} - - -

- There have been {{ len $incidents }} incidents in total so far. - In total, this added up to {{ $scratchValue }}s (or {{ div $scratchValue 60 }} min) of downtime. Please note that the uptime statistics only counts resolved incidents, ongoing incidents are not included in these calculations. -

-
- {{ else }} -
-

Uptime stats are not available during an outage. Sorry!

-
- {{ end }} - -{{ partial "js" . }} -{{ partial "footer" . }} -- cgit v1.2.3-70-g09d2