aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/sidebar/allow_maintainer_edit.tmpl
blob: ad4ce96a475527408eb520c7d36de03e033b08bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{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>
	<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}}>
	</div>
	{{end}}
{{end}}