blob: 41f285b503f8c0353718e6f0904ef63968a4142f (
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-time-prefix="{{ T "lastChecked" }} "></div>
</div>
|