aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/summary.html
blob: de6bceb5a0c1ba217cb9abd10b7c2fc103ab1013 (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" onclick="location.reload()"></div>
</div>