1
0
Fork 0
forked from forgejo/forgejo

Make template DateTime show proper tooltip (#28677) (#28683)

Backport #28677

(cherry picked from commit 83457805bb)
This commit is contained in:
wxiaoguang 2024-01-03 18:41:03 +08:00 committed by Earl Warren
parent f5764bbf26
commit d537b63521
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 24 additions and 16 deletions

View file

@ -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}}">