gitea源码

comments_delete_time.tmpl 713B

123456789101112131415
  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. <button class="ui icon button compact mini link-action" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.del_time"}}"
  6. data-url="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete?id={{.comment.Time.ID}}"
  7. data-modal-confirm="{{ctx.Locale.Tr "repo.issues.del_time"}}"
  8. >
  9. {{svg "octicon-trash"}}
  10. </button>
  11. </span>
  12. {{end}}
  13. {{end}}
  14. {{end}}