aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/summary.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/index/summary.html')
-rw-r--r--layouts/partials/index/summary.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/index/summary.html b/layouts/partials/index/summary.html
new file mode 100644
index 0000000..d8e3108
--- /dev/null
+++ b/layouts/partials/index/summary.html
@@ -0,0 +1,24 @@
+{{ $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" }}
+
+<div class="summary">
+ <strong>
+ {{ if $isDown }}
+ {{ T "isDown" }}
+ {{ else }}
+ {{ if $isDisrupted }}
+ {{ T "isDisrupted" }}
+ {{ else }}
+ {{ if $isNotice }}
+ {{ T "isNotice" }}
+ {{ else }}
+ {{ T "isOk" }}
+ {{ end }}{{ end }}{{ end }}
+ </strong>
+
+ <span class="summary__date float-right" onclick="location.reload()"></span>
+</div> \ No newline at end of file