mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 01:22:21 +00:00
f4ef7eed00
Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/bcbcddcc-b328-4751-92fe-6e55b7a84671) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/571ef27a-2411-472e-819d-f694e7be3697) Co-authored-by: Giteabot <teabot@gitea.io>
19 lines
946 B
Handlebars
19 lines
946 B
Handlebars
{{if .comment.Time}} {{/* compatibility with time comments made before v1.14 */}}
|
|
{{if (not .comment.Time.Deleted)}}
|
|
{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
|
|
<span class="ui float right">
|
|
<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
|
|
<form method="POST" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
|
|
{{.ctxData.CsrfTokenHtml}}
|
|
</form>
|
|
<div class="header">{{.ctxData.locale.Tr "repo.issues.del_time"}}</div>
|
|
{{template "base/modal_actions_confirm" (dict "locale" .ctxData.locale)}}
|
|
</div>
|
|
<button class="ui icon button compact mini issue-delete-time" data-id="{{.comment.Time.ID}}" data-tooltip-content="{{.ctxData.locale.Tr "repo.issues.del_time"}}">
|
|
{{svg "octicon-trash"}}
|
|
</button>
|
|
</span>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|