From 290aa0df0204038b8c7b23c28d716755e468f169 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 25 Jan 2019 16:53:51 +0200 Subject: fix #42, #51; v4-dev1 begins --- layouts/index.html | 185 ++++++----------------------------------------------- 1 file changed, 18 insertions(+), 167 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 2802ce1..be887c8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,185 +12,36 @@
- + + {{ partial "index/noscript" . }} - -
- - {{ if $isDown }} - {{ T "isDown" }} - {{ else }} - {{ if $isDisrupted }} - {{ T "isDisrupted" }} - {{ else }} - {{ if $isNotice }} - {{ T "isNotice" }} - {{ else }} - {{ T "isOk" }} - {{ end }}{{ end }}{{ end }} - + + {{ partial "index/summary" . }} - -
+ + {{ partial "index/announcements" . }} - {{ 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 }} - -   (?) + + {{ partial "index/autorefresh" . }} - - {{ . }} - - - {{ end }} + + {{ partial "index/components" . }} - - {{ 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 }} + {{ if .Site.Params.enableCustomHTML }} + {{ partial "custom/homepage-summary" . }} + {{ end }} +
-
- {{ else }} -
-

{{ T "incidentHistory" }}

-
-
- {{ end }} + + {{ partial "index/tabs" . }} +
- {{ 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 "index/incidents" . }}
- - {{ partial "js" . }} {{ partial "footer" . }} -- cgit v1.2.3-70-g09d2