aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2023-09-02 14:04:00 +0300
committerGitHub <noreply@github.com>2023-09-02 14:04:00 +0300
commit3bffcaaa750efbf101f712a9a69523644fa5cbe7 (patch)
treee6b36aa795bb92426384a454fb0f522da79a707a
parent3dae9e39633ab4dbdc210dd787b0aea0f179c15b (diff)
parent4f6e8fe0d265bc87bbcf7a7f08bf945b50e63968 (diff)
Severity aware resolution #278 from nbarton915/severity-aware-resolution
-rw-r--r--layouts/issues/issue.html9
-rw-r--r--layouts/issues/small.html7
2 files changed, 13 insertions, 3 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index 1e953ef..c010502 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -47,7 +47,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 }}
</strong>
<span class="tooltip__text">
@@ -66,7 +69,9 @@
{{ $secsForCalc := (mod $timeDiff 60) }}
{{ div (sub $timeDiff $secsForCalc) 60 }}m
- {{ T "ofDowntime" }}.
+ {{ if eq .Params.severity "down" }}
+ {{ T "ofDowntime" }}
+ {{ end }}
</strong>
<span class="tooltip__text">
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 }}