blob: d8e3108a9410cd2d7770ded8b2cf130a89ef68fd (
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>
<span class="summary__date float-right" onclick="location.reload()"></span>
</div>
|