spearhead-statuskit/site/layouts/partials/all-clear.html
David Calavera e20a6bc9af
Fix clear template issue formatting the date.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-11-21 17:06:08 -08:00

11 lines
336 B
HTML

<div class="system-check-ok">
<img src="/images/icon-large-ok.svg" />
{{ with .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>
{{ end }}
</div>