Backport #24660 by @lunny
Fix #24651
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 8f722012f6
)
This commit is contained in:
parent
937b8e8184
commit
55d062003c
|
@ -257,7 +257,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Milestone -->
|
<!-- Milestone -->
|
||||||
<div class="ui {{if not .Milestones}}disabled{{end}} dropdown jump item">
|
<div class="ui {{if not (or .OpenMilestones .ClosedMilestones)}}disabled{{end}} dropdown jump item">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
{{.locale.Tr "repo.issues.action_milestone"}}
|
{{.locale.Tr "repo.issues.action_milestone"}}
|
||||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||||
|
@ -266,10 +266,23 @@
|
||||||
<div class="item issue-action" data-element-id="0" data-url="{{$.Link}}/milestone">
|
<div class="item issue-action" data-element-id="0" data-url="{{$.Link}}/milestone">
|
||||||
{{.locale.Tr "repo.issues.action_milestone_no_select"}}
|
{{.locale.Tr "repo.issues.action_milestone_no_select"}}
|
||||||
</div>
|
</div>
|
||||||
{{range .Milestones}}
|
{{if .OpenMilestones}}
|
||||||
<div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/milestone">
|
<div class="divider"></div>
|
||||||
{{.Name}}
|
<div class="header">{{.locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
||||||
</div>
|
{{range .OpenMilestones}}
|
||||||
|
<div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/milestone">
|
||||||
|
{{.Name}}
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
{{if .ClosedMilestones}}
|
||||||
|
<div class="divider"></div>
|
||||||
|
<div class="header">{{.locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
||||||
|
{{range .ClosedMilestones}}
|
||||||
|
<div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/milestone">
|
||||||
|
{{.Name}}
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue