blob: 50761489edbcd9bfcf3afb51e2749e7e87c533b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{{ 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" . }}
<div class="contain">
<a href="{{ .Site.BaseURL }}">← Go back</a>
</div>
<div class="contain">
{{ .Render "issue" }}
</div>
{{ partial "js" . }}
{{ partial "footer" . }}
</body>
</html>
|