Don't show fixed 'days since' by default.

Instead, show the date of the last incident to users lacking JavaScript.
This commit is contained in:
Matthew Somerville 2018-01-14 10:11:32 +00:00 committed by steveoh
parent 8c8e97cbfc
commit 4b14c4be61
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<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>
<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 }}