mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
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">
|
||||
{{svg "octicon-x"}}
|
||||
{{$.locale.Tr "repo.pulls.files_conflicted"}}
|
||||
{{range .ConflictedFiles}}
|
||||
<div>{{.}}</div>
|
||||
{{end}}
|
||||
<ul>
|
||||
{{range .ConflictedFiles}}
|
||||
<li>{{.}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{else if .IsPullRequestBroken}}
|
||||
<div class="item">
|
||||
|
@ -226,11 +228,11 @@
|
|||
<div class="item">
|
||||
<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}}
|
||||
<div class="ui ordered list">
|
||||
<ul>
|
||||
{{range .ChangedProtectedFiles}}
|
||||
<div data-value="-" class="item">{{.}}</div>
|
||||
<li>{{.}}</li>
|
||||
{{end}}
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
{{else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsError .RequiredStatusCheckState.IsFailure)}}
|
||||
<div class="item">
|
||||
|
@ -378,10 +380,6 @@
|
|||
</script>
|
||||
|
||||
<div id="pull-request-merge-form"></div>
|
||||
|
||||
{{if .ShowMergeInstructions}}
|
||||
{{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
{{/* no merge style was set in repo setting: not or ($prUnit.PullRequestsConfig.AllowMerge ...) */}}
|
||||
<div class="ui divider"></div>
|
||||
|
@ -428,11 +426,11 @@
|
|||
<div class="item text red">
|
||||
<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}}
|
||||
<div class="ui ordered list">
|
||||
<ul>
|
||||
{{range .ChangedProtectedFiles}}
|
||||
<div data-value="-" class="item">{{.}}</div>
|
||||
<li>{{.}}</li>
|
||||
{{end}}
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
{{else if and .EnableStatusCheck (not .RequiredStatusCheckState.IsSuccess)}}
|
||||
<div class="item text red">
|
||||
|
@ -479,6 +477,10 @@
|
|||
</button>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if and .ShowMergeInstructions .Issue.PullRequest.HeadRepo}}
|
||||
{{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}}
|
||||
{{end}}
|
||||
</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="instruct-content" style="display:none">
|
||||
<div class="ui divider"></div>
|
||||
<div class="ui divider"></div>
|
||||
<div class="instruct-toggle"> {{$.locale.Tr "repo.pulls.merge_instruction_hint" | Safe}} </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 class="ui secondary segment">
|
||||
{{if eq $.Issue.PullRequest.Flow 0}}
|
||||
|
|
Loading…
Reference in a new issue