aboutsummaryrefslogtreecommitdiff
path: root/layouts/issues/issue.html
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2019-10-04 18:59:16 +0300
committerMantas Vilčinskas <hi@mnts.lt>2019-10-04 18:59:16 +0300
commita07a3ccb6d76f3bacc85eddf0c132aa29a1a610c (patch)
tree0ea974628610eeb779a2db625d6e3f772cf2f021 /layouts/issues/issue.html
parent15f03af4e678c0ab4a71af3d34ce3040102992ce (diff)
Added symbols for severity, informational posts, yearly layout default
Diffstat (limited to 'layouts/issues/issue.html')
-rw-r--r--layouts/issues/issue.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index c344f57..24cadd8 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -24,7 +24,8 @@
{{ end }}
</small></p>
- {{ if .Params.Resolved }}
+ {{ if .Params.informational }}
+ {{ else if .Params.Resolved }}
{{ $t := (time .Params.ResolvedWhen) }}
{{ $timeDiff := (sub $t.Unix .Date.Unix) }}
{{ $diffInMin := (div $timeDiff 60) }}
@@ -79,7 +80,15 @@
{{ end }}
{{ end }}
{{ else }}
- <strong class="error">{{ T "downtimeOngoing" }}</strong>
+ <strong class="error">
+ {{ if eq .Params.severity "down" }}
+ ◼
+ {{ else if eq .Params.severity "disrupted" }}
+ ▲
+ {{ else }}
+ ◆
+ {{ end }}
+ {{ T "downtimeOngoing" }}</strong>
{{ end }}
<hr>