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/index.html | 77 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 65 insertions(+), 12 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index b937777..f5fbb05 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -48,9 +48,16 @@ {{ end }} + {{ if .Site.Params.autoRefresh }} +
+ We auto-refresh every 5 minutes +
+
+ {{ else }} +
+ {{ end }} -
{{ $systems := .Site.Params.systems }} {{ range $index, $systems }} @@ -103,17 +110,12 @@
- + {{ if .Site.Params.customTabs }}
- + Incidents - {{ if .Site.Params.showUptime }} - - Uptime - - {{ end }} {{ range .Site.Params.customTabs }} @@ -122,19 +124,70 @@ {{ end }}
+ {{ else }} +
+

Incident history

+
+
+ {{ end }} -
+
- {{ if not .Data.Pages }} -

Looks like we do not have any incidents logged.

+ {{ if not $incidents }} +
+

Is it the calm before the storm?

+

This status page has no logged incidents. This may be because the status page owner (or owners) have recently set up their status page, have had no downtime, or have not logged any downtime.

+
{{ else }} - {{ range .Data.Pages }} + {{ $paginator := .Paginate $incidents .Site.Params.incidentPostsPerPage }} + {{ range $paginator.Pages }} {{ .Render "issue" }} {{ end }} + + + {{ if gt $paginator.TotalPages 1 }} +
+ +
+ {{ if $paginator.HasPrev }} + + ⭠   + Previuos + + {{ else }} + + ⭠   + Previuos + + {{ end }} + + +     + {{ $paginator.PageNumber }} + / + {{ $paginator.TotalPages }} +     + + + {{ if $paginator.HasNext }} + + Next   + ⭢ + + {{ else }} + + Next   + ⭢ + + {{ end }} +
+ {{ end }} {{ end }}
+ + {{ partial "js" . }} {{ partial "footer" . }} -- cgit v1.2.3-70-g09d2