mirror of https://github.com/gogs/gogs.git
make the regular merge option being present conditional in the same way as the rebase merge option in the frontend
parent
2229c305cb
commit
08375a1b98
|
@ -195,12 +195,14 @@
|
|||
<div class="ui divider"></div>
|
||||
<form class="ui form" action="{{.Link}}/merge" method="post">
|
||||
{{.CSRFTokenHTML}}
|
||||
<div class="field">
|
||||
<div class="ui radio checkbox">
|
||||
<input type="radio" name="merge_style" value="create_merge_commit" checked="checked">
|
||||
<label>{{$.i18n.Tr "repo.pulls.create_merge_commit"}}</label>
|
||||
{{if .Issue.Repo.PullsAllowMerge}}
|
||||
<div class="field">
|
||||
<div class="ui radio checkbox">
|
||||
<input type="radio" name="merge_style" value="create_merge_commit" checked="checked">
|
||||
<label>{{$.i18n.Tr "repo.pulls.create_merge_commit"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{if .Issue.Repo.PullsAllowRebase}}
|
||||
<div class="field">
|
||||
<div class="ui radio checkbox">
|
||||
|
|
Loading…
Reference in New Issue