diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2023-09-02 14:12:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 14:12:54 +0300 |
commit | ed865eea911683997fad231f4300dfdf060d78d4 (patch) | |
tree | a99a5fe988ca7db820d3532b32a41fec55f9104a /layouts/issues | |
parent | 04678ea04fe93a578f949f23e6a7e74a88fc54cd (diff) | |
parent | f317386a8e46ae7b7a0e00b3cb21b3dbfebb5da8 (diff) |
v5.5.2 - Fixing bugs, small fixes
Diffstat (limited to 'layouts/issues')
-rw-r--r-- | layouts/issues/issue.html | 11 | ||||
-rw-r--r-- | layouts/issues/small.html | 7 |
2 files changed, 14 insertions, 4 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index 71bb30a..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"> @@ -92,6 +97,6 @@ {{ end }} <hr> - {{ .Content }} + <div class="markdown">{{ .Content }}</div> </div> <div class="padding"></div> 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 }} |