aboutsummaryrefslogtreecommitdiff
path: root/layouts/issues/small.html
diff options
context:
space:
mode:
authorNathan Barton <nbarton915@users.noreply.github.com>2023-05-18 11:18:01 -0600
committerGitHub <noreply@github.com>2023-05-18 11:18:01 -0600
commit4f6e8fe0d265bc87bbcf7a7f08bf945b50e63968 (patch)
tree9d196d1d8c7d02cd92d4d93bfd263897f6618386 /layouts/issues/small.html
parentd2551095402177be56d01be714a83079667e32c0 (diff)
issues resolution time now aware of whether severity was `down` or not
Diffstat (limited to 'layouts/issues/small.html')
-rw-r--r--layouts/issues/small.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/issues/small.html b/layouts/issues/small.html
index 5eb3a2d..97baec9 100644
--- a/layouts/issues/small.html
+++ b/layouts/issues/small.html
@@ -52,7 +52,10 @@
{{ $minutesForCalc := (mod $diffInMin 60) }}
{{ div (sub $diffInMin $minutesForCalc) 60 }}h
- {{ $minutesForCalc }}m {{ T "ofDowntime" }}
+ {{ $minutesForCalc }}m
+ {{ if eq .Params.severity "down" }}
+ {{ T "ofDowntime" }}
+ {{ end }}
</div>
{{ else }}
<div class="ok">
@@ -61,7 +64,9 @@
{{ $secsForCalc := (mod $timeDiff 60) }}
{{ div (sub $timeDiff $secsForCalc) 60 }}m
+ {{ if eq .Params.severity "down" }}
<!-- {{ $secsForCalc }}s --> {{ T "ofDowntime" }}
+ {{ end }}
</div>
{{ end }}
{{ end }}