spearhead-statuskit/site/layouts/partials/all-clear.html
Matthew Somerville 4b14c4be61 Don't show fixed 'days since' by default.
Instead, show the date of the last incident to users lacking JavaScript.
2019-04-16 11:54:10 -06:00

11 lines
360 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 }}">Last incident: {{ .Format "02 Jan 2006 15:04 MST" }}</p>
{{ else }}
<p>No incidents so far, all is good</p>
{{ end }}
</div>