2022-08-31 11:58:54 -04:00
|
|
|
{{if .comment.Time}} {{/* compatibility with time comments made before v1.14 */}}
|
|
|
|
{{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)))}}
|
2021-02-19 05:52:11 -05:00
|
|
|
<span class="ui float right">
|
|
|
|
<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
|
2023-03-02 12:44:06 -05:00
|
|
|
<form method="POST" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
|
|
|
|
{{.ctxData.CsrfTokenHtml}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</form>
|
2023-03-02 12:44:06 -05:00
|
|
|
<div class="header">{{.ctxData.locale.Tr "repo.issues.del_time"}}</div>
|
2023-03-13 23:34:09 -04:00
|
|
|
{{template "base/delete_modal_actions" .}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</div>
|
2023-03-02 12:44:06 -05:00
|
|
|
<button class="ui icon button compact mini issue-delete-time tooltip" data-id="{{.comment.Time.ID}}" data-content="{{.ctxData.locale.Tr "repo.issues.del_time"}}" data-position="top right">
|
2021-03-22 00:04:19 -04:00
|
|
|
{{svg "octicon-trash"}}
|
2021-02-19 05:52:11 -05:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|