File tree 3 files changed +8
-8
lines changed 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 239
239
{{else}}
240
240
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}}
241
241
{{end}}
242
- {{if .IsPull }}{{if .PullRequest.RequiresApproval }}
242
+ {{if and .IsPull .PullRequest.RequiresApproval}}
243
243
<a class="milestone" href="{{$.Link}}/{{.Index}}">{{.PullRequest.GetReviewLabel $.i18n.Lang | Safe}}</a>
244
- {{end}}{{end}}
244
+ {{end}}
245
245
{{if .Milestone}}
246
246
<a class="milestone" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
247
247
<span class="octicon octicon-milestone"></span> {{.Milestone.Name}}
Original file line number Diff line number Diff line change 206
206
{{else}}
207
207
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
208
208
{{end}}
209
- {{if .IsPull }}{{if .PullRequest.RequiresApproval }}
210
- <a class="milestone" href="{{$.RepoLink}}/issues /{{.Index}}">{{.PullRequest.GetReviewLabel $.i18n.Lang | Safe}}</a>
211
- {{end}}{{end}}
209
+ {{if and .IsPull .PullRequest.RequiresApproval}}
210
+ <a class="milestone" href="{{$.RepoLink}}/pulls /{{.Index}}">{{.PullRequest.GetReviewLabel $.i18n.Lang | Safe}}</a>
211
+ {{end}}
212
212
{{if .Ref}}
213
213
<a class="ref" href="{{$.RepoLink}}/src/branch/{{.Ref}}">
214
214
<span class="octicon octicon-git-branch"></span> {{.Ref}}
Original file line number Diff line number Diff line change 124
124
{{else}}
125
125
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
126
126
{{end}}
127
- {{if .IsPull }}{{if .PullRequest.RequiresApproval }}
128
- <a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues /{{.Index}}">{{.PullRequest.GetReviewLabel $.i18n.Lang | Safe}}</a>
129
- {{end}}{{end}}
127
+ {{if and .IsPull .PullRequest.RequiresApproval}}
128
+ <a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/pulls /{{.Index}}">{{.PullRequest.GetReviewLabel $.i18n.Lang | Safe}}</a>
129
+ {{end}}
130
130
{{if .Milestone}}
131
131
<a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
132
132
<span class="octicon octicon-milestone"></span> {{.Milestone.Name}}
You can’t perform that action at this time.
0 commit comments