blob: 275e04e233df188684bdebcd2f9fefeaff71cf7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{{ $diff := now.Sub .ExpiryDate }}
{{ $duration := lang.FormatNumberCustom 0 (math.Round (mul (div $diff.Hours 24) -1)) }}
<expiry-date>
<time
datetime= "{{ .ExpiryDate | time.Format "2006-01-02T15:04:05Z" }}"
title="Self destructs within {{ $duration }} days ({{ .ExpiryDate | time.Format "Monday, January 2 2006 at 15:04:05 MST" }})">
{{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/trash-2.svg")) }}
{{ .ExpiryDate | time.Format "Jan 2 2006" }}
</time>
</expiry-date>
|