2024-11-07 18:44:20 -07:00
|
|
|
{{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed) .Issue.PullRequest.HeadRepo}}
|
|
|
|
{{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}}
|
|
|
|
<div class="divider"></div>
|
2024-11-08 10:55:32 -07:00
|
|
|
<div class="ui checkbox loading-icon-2px" id="allow-edits-from-maintainers"
|
|
|
|
data-url="{{.Issue.Link}}"
|
|
|
|
data-tooltip-content="{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers_desc"}}"
|
|
|
|
data-prompt-error="{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers_err"}}"
|
|
|
|
>
|
|
|
|
<label><strong>{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers"}}</strong></label>
|
|
|
|
<input type="checkbox" {{if .Issue.PullRequest.AllowMaintainerEdit}}checked{{end}}>
|
2024-11-07 18:44:20 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|