Always show the command line instructions
button even if there are conflicts (#22909)
Always show the `command line instructions` button even if there are conflicts.
This commit is contained in:
parent
4d306325c1
commit
2c04595762
2 changed files with 18 additions and 16 deletions
|
@ -167,9 +167,11 @@
|
||||||
<div class="item text">
|
<div class="item text">
|
||||||
{{svg "octicon-x"}}
|
{{svg "octicon-x"}}
|
||||||
{{$.locale.Tr "repo.pulls.files_conflicted"}}
|
{{$.locale.Tr "repo.pulls.files_conflicted"}}
|
||||||
{{range .ConflictedFiles}}
|
<ul>
|
||||||
<div>{{.}}</div>
|
{{range .ConflictedFiles}}
|
||||||
{{end}}
|
<li>{{.}}</li>
|
||||||
|
{{end}}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{else if .IsPullRequestBroken}}
|
{{else if .IsPullRequestBroken}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -226,11 +228,11 @@
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i>
|
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i>
|
||||||
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
|
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
|
||||||
<div class="ui ordered list">
|
<ul>
|
||||||
{{range .ChangedProtectedFiles}}
|
{{range .ChangedProtectedFiles}}
|
||||||
<div data-value="-" class="item">{{.}}</div>
|
<li>{{.}}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsError .RequiredStatusCheckState.IsFailure)}}
|
{{else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsError .RequiredStatusCheckState.IsFailure)}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -378,10 +380,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="pull-request-merge-form"></div>
|
<div id="pull-request-merge-form"></div>
|
||||||
|
|
||||||
{{if .ShowMergeInstructions}}
|
|
||||||
{{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}}
|
|
||||||
{{end}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
{{/* no merge style was set in repo setting: not or ($prUnit.PullRequestsConfig.AllowMerge ...) */}}
|
{{/* no merge style was set in repo setting: not or ($prUnit.PullRequestsConfig.AllowMerge ...) */}}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
|
@ -428,11 +426,11 @@
|
||||||
<div class="item text red">
|
<div class="item text red">
|
||||||
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i>
|
<i class="icon icon-octicon">{{svg "octicon-x" 16}}</i>
|
||||||
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
|
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
|
||||||
<div class="ui ordered list">
|
<ul>
|
||||||
{{range .ChangedProtectedFiles}}
|
{{range .ChangedProtectedFiles}}
|
||||||
<div data-value="-" class="item">{{.}}</div>
|
<li>{{.}}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{else if and .EnableStatusCheck (not .RequiredStatusCheckState.IsSuccess)}}
|
{{else if and .EnableStatusCheck (not .RequiredStatusCheckState.IsSuccess)}}
|
||||||
<div class="item text red">
|
<div class="item text red">
|
||||||
|
@ -479,6 +477,10 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
{{if and .ShowMergeInstructions .Issue.PullRequest.HeadRepo}}
|
||||||
|
{{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}}
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="instruct-toggle gt-mt-3"> {{$.locale.Tr "repo.pulls.merge_instruction_hint" | Safe}} </div>
|
<div class="ui divider"></div>
|
||||||
<div class="instruct-content" style="display:none">
|
<div class="instruct-toggle"> {{$.locale.Tr "repo.pulls.merge_instruction_hint" | Safe}} </div>
|
||||||
<div class="ui divider"></div>
|
<div class="instruct-content gt-mt-3" style="display:none">
|
||||||
<div><h3 class="gt-di">{{$.locale.Tr "step1"}} </h3>{{$.locale.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
|
<div><h3 class="gt-di">{{$.locale.Tr "step1"}} </h3>{{$.locale.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
|
||||||
<div class="ui secondary segment">
|
<div class="ui secondary segment">
|
||||||
{{if eq $.Issue.PullRequest.Flow 0}}
|
{{if eq $.Issue.PullRequest.Flow 0}}
|
||||||
|
|
Loading…
Reference in a new issue