From b598099a5fdac35a0f76a7e3e4328ed657647c03 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 15 Feb 2023 00:15:15 +0800 Subject: [PATCH 1/3] fix --- templates/repo/issue/view_content/pull.tmpl | 12 +++++++----- .../issue/view_content/pull_merge_instruction.tmpl | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index ae463d1b3f079..6c5108decf1e4 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -167,9 +167,11 @@
{{svg "octicon-x"}} {{$.locale.Tr "repo.pulls.files_conflicted"}} +
{{else if .IsPullRequestBroken}}
@@ -378,10 +380,6 @@
- - {{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 ...) */}}
@@ -479,6 +477,10 @@
{{end}} + + {{if .ShowMergeInstructions}} + {{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}} + {{end}} diff --git a/templates/repo/issue/view_content/pull_merge_instruction.tmpl b/templates/repo/issue/view_content/pull_merge_instruction.tmpl index 5669b2fb69bb0..39349d6ca42f7 100644 --- a/templates/repo/issue/view_content/pull_merge_instruction.tmpl +++ b/templates/repo/issue/view_content/pull_merge_instruction.tmpl @@ -1,6 +1,6 @@ -
{{$.locale.Tr "repo.pulls.merge_instruction_hint" | Safe}}
-