2022-08-31 21:28:54 +05:30
|
|
|
{{if .comment.Time}} {{/* compatibility with time comments made before v1.14 */}}
|
|
|
|
{{if (not .comment.Time.Deleted)}}
|
2023-03-02 23:14:06 +05:30
|
|
|
{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
|
2023-08-31 07:59:59 +05:30
|
|
|
<span class="gt-float-right">
|
2021-02-19 16:22:11 +05:30
|
|
|
<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
|
2023-06-14 23:47:58 +05:30
|
|
|
<form method="post" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
|
2023-03-02 23:14:06 +05:30
|
|
|
{{.ctxData.CsrfTokenHtml}}
|
2021-02-19 16:22:11 +05:30
|
|
|
</form>
|
2023-03-02 23:14:06 +05:30
|
|
|
<div class="header">{{.ctxData.locale.Tr "repo.issues.del_time"}}</div>
|
2023-05-22 15:16:50 +05:30
|
|
|
{{template "base/modal_actions_confirm" (dict "locale" .ctxData.locale)}}
|
2021-02-19 16:22:11 +05:30
|
|
|
</div>
|
2023-03-24 16:05:38 +05:30
|
|
|
<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"}}">
|
2021-03-22 09:34:19 +05:30
|
|
|
{{svg "octicon-trash"}}
|
2021-02-19 16:22:11 +05:30
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|