Fix clear template issue formatting the date.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
0143a64735
commit
e20a6bc9af
@ -1,7 +1,7 @@
|
||||
<div class="system-check-ok">
|
||||
<img src="/images/icon-large-ok.svg" />
|
||||
{{ with .Date }}
|
||||
{{ $latestDate := dateFormat "2006-01-02T15:04:05" .Date}}
|
||||
{{ $latestDate := dateFormat "2006-01-02T15:04:05" .}}
|
||||
<p id="days-since-latest" data-latest-incident-date="{{ $latestDate }}">48+ days since last incident</p>
|
||||
{{ else }}
|
||||
<p>No incidents so far, all is good</p>
|
||||
|
Loading…
Reference in New Issue
Block a user