aboutsummaryrefslogtreecommitdiff
path: root/layouts/issues/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/issues/single.html')
-rw-r--r--layouts/issues/single.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/issues/single.html b/layouts/issues/single.html
new file mode 100644
index 0000000..52c4145
--- /dev/null
+++ b/layouts/issues/single.html
@@ -0,0 +1,17 @@
+{{ 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" }}
+
+ <body class="status-{{ if $isDown }}down{{ else }}{{ if $isDisrupted}}disrupted{{ else }}{{ if $isNotice }}notice{{ else }}ok{{ end }}{{ end }}{{ end }}">
+ {{ partial "header-mini" . }}
+
+ <div class="contain">
+ {{ .Render "issue" }}
+ </div>
+
+{{ partial "footer" . }}