2024-02-19 20:39:44 -05:00
|
|
|
{{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
|
2022-08-31 10:58:54 -05:00
|
|
|
{{if (not .comment.Time.Deleted)}}
|
2023-03-02 12:44:06 -05:00
|
|
|
{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
|
2023-08-30 21:29:59 -05:00
|
|
|
<span class="gt-float-right">
|
2021-02-19 05:52:11 -05:00
|
|
|
<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
|
2023-06-14 13:17:58 -05:00
|
|
|
<form method="post" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
|
2023-03-02 12:44:06 -05:00
|
|
|
{{.ctxData.CsrfTokenHtml}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</form>
|
2023-09-25 03:56:50 -05:00
|
|
|
<div class="header">{{ctx.Locale.Tr "repo.issues.del_time"}}</div>
|
2023-09-24 15:31:58 -05:00
|
|
|
{{template "base/modal_actions_confirm"}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</div>
|
2023-09-25 03:56:50 -05:00
|
|
|
<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-21 23:04:19 -05:00
|
|
|
{{svg "octicon-trash"}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|