diff options
author | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
commit | d9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch) | |
tree | 7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-expiry-date.html | |
parent | ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff) | |
download | canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.gz canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.bz2 canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.zip |
themes/default/layouts/partials: Hack in card context menu
Diffstat (limited to 'themes/default/layouts/partials/meta-expiry-date.html')
-rw-r--r-- | themes/default/layouts/partials/meta-expiry-date.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/meta-expiry-date.html b/themes/default/layouts/partials/meta-expiry-date.html index 0521e60..e2c4838 100644 --- a/themes/default/layouts/partials/meta-expiry-date.html +++ b/themes/default/layouts/partials/meta-expiry-date.html @@ -2,11 +2,10 @@ {{- $diff := now.Sub .ExpiryDate -}} {{- $duration := lang.FormatNumberCustom 0 (math.Round (mul (div $diff.Hours 24) -1)) -}} - <micro-metadata-expiry> + <micro-metadata-expiry + title="Self destructs within {{ $duration }} days ({{ .ExpiryDate | time.Format "Monday, January 2 2006 at 15:04:05 MST" }})"> {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/trash-2.svg")) -}} - <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" }})"> + <time datetime= "{{- .ExpiryDate | time.Format "2006-01-02T15:04:05Z" -}}"> {{- .ExpiryDate | time.Format "Jan 2 2006" -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} </time> |