2024-02-20 07:09:44 +05:30
|
|
|
{{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
|
2022-08-31 21:28:54 +05:30
|
|
|
{{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-09-25 14:26:50 +05:30
|
|
|
<div class="header">{{ctx.Locale.Tr "repo.issues.del_time"}}</div>
|
2023-09-25 02:01:58 +05:30
|
|
|
{{template "base/modal_actions_confirm"}}
|
2021-02-19 16:22:11 +05:30
|
|
|
</div>
|
2023-09-25 14:26:50 +05:30
|
|
|
<button class="ui icon button compact mini issue-delete-time" data-id="{{.comment.Time.ID}}" data-tooltip-content="{{ctx.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}}
|