1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-01 20:08:25 +00:00

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

Backport #28677
This commit is contained in:
wxiaoguang
2024-01-03 18:41:03 +08:00
committed by GitHub
parent 3c79315cf2
commit 83457805bb
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}}">