+
{{if .Issue.PullRequest.HasMerged}}
{{if .IsPullBranchDeletable}}
- {{$.locale.Tr "repo.pulls.merged_success"}} + {{$.locale.Tr "repo.pulls.merged_success"}}
{{$.locale.Tr "repo.pulls.merged_info_text" (printf "
{{else if .IsPullFilesConflicted}}
- %s
" (.HeadTarget | Escape)) | Str2html}}
@@ -58,93 +58,91 @@
{{end}}
+
{{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.files_conflicted"}}
-
+ -
- {{range .ConflictedFiles}}
-
- {{.}} - {{end}} -
-
+ {{range .ConflictedFiles}}
+
- {{.}} + {{end}} +
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.data_broken"}}
{{else if .IsPullWorkInProgress}}
-
-
- {{svg "octicon-x"}}
+
{{else if .IsBlockedByOutdatedBranch}}
+
{{template "repo/issue/view_content/update_branch_by_merge" $}}
{{else if .Issue.PullRequest.IsChecking}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.cannot_merge_work_in_progress"}}
-
- {{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}}
-
- {{end}}
-
+ {{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}}
+
+ {{end}}
- {{svg "octicon-sync"}}
+ {{svg "octicon-sync"}}
{{$.locale.Tr "repo.pulls.is_checking"}}
{{else if .Issue.PullRequest.IsAncestor}}
- {{svg "octicon-alert"}}
+ {{svg "octicon-alert"}}
{{$.locale.Tr "repo.pulls.is_ancestor"}}
{{else if or .Issue.PullRequest.CanAutoMerge .Issue.PullRequest.IsEmpty}}
{{if .IsBlockedByApprovals}}
- {{svg "octicon-x"}}
- {{$.locale.Tr "repo.pulls.blocked_by_approvals" .GrantedApprovals .ProtectedBranch.RequiredApprovals}}
+ {{svg "octicon-x"}}
+ {{$.locale.Tr "repo.pulls.blocked_by_approvals" .GrantedApprovals .ProtectedBranch.RequiredApprovals}}
{{else if .IsBlockedByRejection}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.blocked_by_rejection"}}
{{else if .IsBlockedByOfficialReviewRequests}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.blocked_by_official_review_requests"}}
{{else if .IsBlockedByOutdatedBranch}}
- {{svg "octicon-x"}}
- {{$.locale.Tr "repo.pulls.blocked_by_outdated_branch"}}
+ {{svg "octicon-x"}}
+ {{$.locale.Tr "repo.pulls.blocked_by_outdated_branch"}}
{{else if .IsBlockedByChangedProtectedFiles}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
-
+ -
- {{range .ChangedProtectedFiles}}
-
- {{.}} - {{end}} -
-
+ {{range .ChangedProtectedFiles}}
+
- {{.}} + {{end}} +
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.required_status_check_failed"}}
{{else if and .EnableStatusCheck (not .RequiredStatusCheckState.IsSuccess)}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.required_status_check_missing"}}
{{else if and .AllowMerge .RequireSigned (not .WillSign)}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.Tr "repo.pulls.require_signed_wont_sign"}}
- {{svg "octicon-unlock"}}
+ {{svg "octicon-unlock"}}
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
{{end}}
@@ -158,23 +156,23 @@
{{if $canMergeNow}}
{{if $notAllOverridableChecksOk}}
- {{svg "octicon-dot-fill"}}
+ {{svg "octicon-dot-fill"}}
{{$.locale.Tr "repo.pulls.required_status_check_administrator"}}
{{else}}
- {{svg "octicon-check"}}
+ {{svg "octicon-check"}}
{{$.locale.Tr "repo.pulls.can_auto_merge_desc"}}
{{end}}
{{if .WillSign}}
- {{svg "octicon-lock" 16 "text green"}}
+ {{svg "octicon-lock" 16 "text green"}}
{{$.locale.Tr "repo.signing.will_sign" .SigningKey}}
{{else if .IsSigned}}
- {{svg "octicon-unlock"}}
+ {{svg "octicon-unlock"}}
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
{{end}}
@@ -184,7 +182,7 @@
- {{svg "octicon-alert"}}
+ {{svg "octicon-alert"}}
{{$.locale.Tr "repo.pulls.is_empty"}}
{{end}}
@@ -315,19 +313,19 @@
- {{svg "octicon-x"}}
- {{$.locale.Tr "repo.pulls.blocked_by_outdated_branch"}}
+ {{svg "octicon-x"}}
+ {{$.locale.Tr "repo.pulls.blocked_by_outdated_branch"}}
{{else if .IsBlockedByChangedProtectedFiles}}
- {{svg "octicon-x"}}
+ {{svg "octicon-x"}}
{{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}}
-
+ -
- {{range .ChangedProtectedFiles}}
-
- {{.}} - {{end}} -
-
+ {{range .ChangedProtectedFiles}}
+
- {{.}} + {{end}} +
{{svg "octicon-x"}}
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 23e2c18547..901f714e32 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -273,7 +273,7 @@