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