2024-02-20 02:39:44 +01:00
|
|
|
{{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
|
2022-08-31 17:58:54 +02:00
|
|
|
{{if (not .comment.Time.Deleted)}}
|
2023-03-02 18:44:06 +01:00
|
|
|
{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
|
2024-03-04 04:33:20 +01:00
|
|
|
<span class="tw-float-right">
|
2024-12-05 14:07:53 +01:00
|
|
|
<button class="ui icon button compact mini link-action" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.del_time"}}"
|
|
|
|
data-url="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete?id={{.comment.Time.ID}}"
|
|
|
|
data-modal-confirm="{{ctx.Locale.Tr "repo.issues.del_time"}}"
|
|
|
|
>
|
2021-03-22 05:04:19 +01:00
|
|
|
{{svg "octicon-trash"}}
|
2021-02-19 11:52:11 +01:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|