aboutsummaryrefslogtreecommitdiff
path: root/layouts/affected
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2019-01-25 16:53:51 +0200
committerMantas <11616378+mistermantas@users.noreply.github.com>2019-01-25 16:53:51 +0200
commit290aa0df0204038b8c7b23c28d716755e468f169 (patch)
treef550e674805b3cc42b4b0c74ea7d78a8c59aca77 /layouts/affected
parent6a1fbad426c29b4f3fe4f6fa4d240735d5432b50 (diff)
fix #42, #51; v4-dev1 begins
Diffstat (limited to 'layouts/affected')
-rw-r--r--layouts/affected/404.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/affected/404.html b/layouts/affected/404.html
new file mode 100644
index 0000000..527c280
--- /dev/null
+++ b/layouts/affected/404.html
@@ -0,0 +1,21 @@
+{{ 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-homepage status-{{ if $isDown }}down{{ else }}{{ if $isDisrupted}}disrupted{{ else }}{{ if $isNotice }}notice{{ else }}ok{{ end }}{{ end }}{{ end }} {{ if not .Site.Params.alwaysKeepBrandColor }}change-header-color{{ end }}">
+ {{ partial "header" . }}
+
+ <div class="contain center">
+ <h1 class="bold">{{ T "notFoundAffected" }}</h1>
+ <p>{{ T "notFoundText" }}</p>
+ </div>
+
+ {{ partial "js" . }}
+ {{ partial "footer" . }}
+ </body>
+</html>