code.gitea.io/gitea@v1.22.3/templates/repo/issue/view_content/comments_delete_time.tmpl (about)

     1  {{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
     2  	{{if (not .comment.Time.Deleted)}}
     3  		{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
     4  			<span class="tw-float-right">
     5  				<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
     6  					<form method="post" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
     7  						{{.ctxData.CsrfTokenHtml}}
     8  					</form>
     9  					<div class="header">{{ctx.Locale.Tr "repo.issues.del_time"}}</div>
    10  					{{template "base/modal_actions_confirm"}}
    11  				</div>
    12  				<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"}}">
    13  					{{svg "octicon-trash"}}
    14  				</button>
    15  			</span>
    16  		{{end}}
    17  	{{end}}
    18  {{end}}