File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -1066,6 +1066,7 @@ pulls.blocked_by_rejection = "This Pull Request has changes requested by an offi
1066
1066
pulls.can_auto_merge_desc = This pull request can be merged automatically.
1067
1067
pulls.cannot_auto_merge_desc = This pull request cannot be merged automatically due to conflicts.
1068
1068
pulls.cannot_auto_merge_helper = Merge manually to resolve the conflicts.
1069
+ pulls.num_conflicting_files = " %d conflicting files"
1069
1070
pulls.no_merge_desc = This pull request cannot be merged because all repository merge options are disabled.
1070
1071
pulls.no_merge_helper = Enable merge options in the repository settings or merge the pull request manually.
1071
1072
pulls.no_merge_wip = This pull request can not be merged because it is marked as being a work in progress.
Original file line number Diff line number Diff line change 212
212
<div class="ui {{if .IsClosed}}{{if .IsPull}}{{if .PullRequest.HasMerged}}purple{{else}}red{{end}}{{else}}red{{end}}{{else}}{{if .IsRead}}white{{else}}green{{end}}{{end}} label">#{{.Index}}</div>
213
213
<a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a>
214
214
215
- {{if .IsPull }}
216
- {{if (index $.CommitStatus .PullRequest.ID)}}
217
- {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
215
+ {{if .IsPull }}
216
+ {{if (index $.CommitStatus .PullRequest.ID)}}
217
+ {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
218
218
{{end}}
219
219
{{end}}
220
220
267
267
<img class="ui avatar image" src="{{.RelAvatarLink}}">
268
268
</a>
269
269
{{end}}
270
+ {{if .IsPull}}
271
+ {{if (len .PullRequest.ConflictedFiles) gt 0}}
272
+ <span class="conflicting"><i class="octicon octicon-mirror"></i> {{$.i18n.Tr "repo.pulls.num_conflicting_files" (len .PullRequest.ConflictedFiles)}}</span>
273
+ {{end}}
274
+ {{end}}
270
275
</p>
271
276
</li>
272
277
{{end}}
Original file line number Diff line number Diff line change 91
91
<div class="ui label">{{.Repo.FullName}}#{{.Index}}</div>
92
92
<a class="title has-emoji" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Title}}</a>
93
93
94
- {{if .IsPull }}
95
- {{if (index $.CommitStatus .PullRequest.ID)}}
96
- {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
97
- {{end}}
98
- {{end}}
94
+ {{if .IsPull}}
95
+ {{if (index $.CommitStatus .PullRequest.ID)}}
96
+ {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
97
+ {{end}}
98
+ {{end}}
99
99
100
100
{{with .Labels}}
101
101
{{/* If we have any labels, we should show them
151
151
<span class="octicon octicon-calendar"></span><span{{if .IsOverdue}} class="overdue"{{end}}>{{.DeadlineUnix.FormatShort}}</span>
152
152
</span>
153
153
{{end}}
154
+ {{if .IsPull}}
155
+ {{if (len .PullRequest.ConflictedFiles) gt 0}}
156
+ <span class="conflicting"><i class="octicon octicon-mirror"></i> {{$.i18n.Tr "repo.pulls.num_conflicting_files" (len .PullRequest.ConflictedFiles)}}</span>
157
+ {{end}}
158
+ {{end}}
154
159
</p>
155
160
</li>
156
161
{{end}}
Original file line number Diff line number Diff line change 2129
2129
}
2130
2130
}
2131
2131
2132
+ .conflicting {
2133
+ padding-left : 5px ;
2134
+ }
2135
+
2132
2136
.due-date {
2133
2137
padding-left : 5px ;
2134
2138
}
You can’t perform that action at this time.
0 commit comments