blob: dcf753c41ebb270ac2ac9e3b962e7dd1a5bf36d2 (
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
|
{{ $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>
<div class="summary__date clicky float-right relative-time" onclick="location.reload()" data-prefix="{{ T "lastChecked" }} "></div>
</div>
|