aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-01-03 18:41:03 +0800
committerGitHub <noreply@github.com>2024-01-03 18:41:03 +0800
commit83457805bba667532fa45e9d610f76be056a3f6e (patch)
treeea8466dc0df88c0080b2928ad5a470ba7b40f0ba /templates
parent3c79315cf2308e68caba5bd7f2f94aa3472d9425 (diff)
downloadgitea-83457805bba667532fa45e9d610f76be056a3f6e.tar.gz
gitea-83457805bba667532fa45e9d610f76be056a3f6e.zip
Make template `DateTime` show proper tooltip (#28677) (#28683)
Backport #28677
Diffstat (limited to 'templates')
-rw-r--r--templates/user/settings/security/webauthn.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/user/settings/security/webauthn.tmpl b/templates/user/settings/security/webauthn.tmpl
index 28d8511fb4..e0876f4162 100644
--- a/templates/user/settings/security/webauthn.tmpl
+++ b/templates/user/settings/security/webauthn.tmpl
@@ -10,7 +10,9 @@
</div>
<div class="flex-item-main">
<div class="flex-item-title">{{.Name}}</div>
- <span class="flex-item-body time">{{TimeSinceUnix .CreatedUnix ctx.Locale}}</span>
+ <div class="flex-item-body">
+ <i>{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}}</i>
+ </div>
</div>
<div class="flex-item-trailing">
<button class="ui red tiny button delete-button" data-modal-id="delete-registration" data-url="{{$.Link}}/webauthn/delete" data-id="{{.ID}}">