Skip to content

Commit 4b14c4b

Browse files
dracossteveoh
authored andcommitted
Don't show fixed 'days since' by default.
Instead, show the date of the last incident to users lacking JavaScript.
1 parent 8c8e97c commit 4b14c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/layouts/partials/all-clear.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="/images/icon-large-ok.svg" />
33
{{ with .Date }}
44
{{ $latestDate := dateFormat "2006-01-02T15:04:05" .}}
5-
<p id="days-since-latest" data-latest-incident-date="{{ $latestDate }}">48+ days since last incident</p>
5+
<p id="days-since-latest" data-latest-incident-date="{{ $latestDate }}">Last incident: {{ .Format "02 Jan 2006 15:04 MST" }}</p>
66
{{ else }}
77
<p>No incidents so far, all is good</p>
88
{{ end }}

0 commit comments

Comments
 (0)