From 3965c060bc3f1d9599c20fe4bc0ac538f34511e8 Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 22 Apr 2023 14:15:41 +0300 Subject: add md content class --- layouts/issues/issue.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/issues/issue.html') diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index 71bb30a..1e953ef 100644 --- a/layouts/issues/issue.html +++ b/layouts/issues/issue.html @@ -92,6 +92,6 @@ {{ end }}
- {{ .Content }} +
{{ .Content }}
-- cgit v1.2.3-70-g09d2 From 4f6e8fe0d265bc87bbcf7a7f08bf945b50e63968 Mon Sep 17 00:00:00 2001 From: Nathan Barton Date: Thu, 18 May 2023 11:18:01 -0600 Subject: issues resolution time now aware of whether severity was `down` or not --- layouts/issues/issue.html | 9 +++++++-- layouts/issues/small.html | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'layouts/issues/issue.html') diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index 71bb30a..a14c922 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 }} @@ -66,7 +69,9 @@ {{ $secsForCalc := (mod $timeDiff 60) }} {{ div (sub $timeDiff $secsForCalc) 60 }}m - {{ T "ofDowntime" }}. + {{ if eq .Params.severity "down" }} + {{ T "ofDowntime" }} + {{ end }} 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 }} {{ else }}
@@ -61,7 +64,9 @@ {{ $secsForCalc := (mod $timeDiff 60) }} {{ div (sub $timeDiff $secsForCalc) 60 }}m + {{ if eq .Params.severity "down" }} {{ T "ofDowntime" }} + {{ end }}
{{ end }} {{ end }} -- cgit v1.2.3-70-g09d2