From d7500b363fee49307304fa623f74649cb408b532 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 11 Jul 2018 14:45:50 +0300 Subject: v2-dev2 --- layouts/index.html | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index eedb08d..f80dfe0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,7 +7,7 @@ {{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }} {{ $isDown := where $active "Params.severity" "=" "down" }} - + {{ partial "header" . }} @@ -33,15 +33,16 @@ {{ end }}{{ end }}{{ end }} - - + + {{ if $active }}
{{ range $active }}

{{ .Title }}

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

Continue reading

{{ else }}{{ end }}
@@ -53,15 +54,26 @@
{{ $systems := .Site.Params.systems }} {{ range $index, $systems }} - {{ $activeComponentIssues := where $active "Params.affected" "intersect" (slice .) }} + {{ $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" }}
- {{ $this := . }} - {{ . }} + {{ $this := .name }} + {{ .name }} + + {{ with .description }} + +   (?) + + + {{ . }} + + + {{ end }} + {{ if $thisIsDown }} Down @@ -75,6 +87,12 @@ Operational {{ end }}{{ end }}{{ end }} + + {{ with .partial }} +
+ {{ partial . . }} +
+ {{ end }}
{{ end }}
@@ -88,9 +106,17 @@ Incidents + {{ if .Site.Params.showUptime }} Uptime + {{ end }} + + {{ range .Site.Params.customTabs }} + + {{ .name }} + + {{ end }} -- cgit v1.2.3-70-g09d2