2023-04-30 07:12:49 -06:00
|
|
|
{{if or .OpenMilestones .ClosedMilestones}}
|
|
|
|
<div class="ui icon search input">
|
2023-08-25 17:35:10 -06:00
|
|
|
<i class="icon">{{svg "octicon-search" 16}}</i>
|
2023-04-30 07:12:49 -06:00
|
|
|
<input type="text" placeholder="{{.locale.Tr "repo.issues.filter_milestones"}}">
|
|
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{end}}
|
|
|
|
<div class="no-select item">{{.locale.Tr "repo.issues.new.clear_milestone"}}</div>
|
|
|
|
{{if and (not .OpenMilestones) (not .ClosedMilestones)}}
|
2023-05-29 08:10:06 -06:00
|
|
|
<div class="disabled item">
|
2023-04-30 07:12:49 -06:00
|
|
|
{{.locale.Tr "repo.issues.new.no_items"}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{if .OpenMilestones}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
<div class="header">
|
|
|
|
{{.locale.Tr "repo.issues.new.open_milestone"}}
|
|
|
|
</div>
|
|
|
|
{{range .OpenMilestones}}
|
|
|
|
<a class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}">
|
|
|
|
{{svg "octicon-milestone" 16 "gt-mr-2"}}
|
|
|
|
{{.Name}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .ClosedMilestones}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
<div class="header">
|
|
|
|
{{.locale.Tr "repo.issues.new.closed_milestone"}}
|
|
|
|
</div>
|
|
|
|
{{range .ClosedMilestones}}
|
|
|
|
<a class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}">
|
|
|
|
{{svg "octicon-milestone" 16 "gt-mr-2"}}
|
|
|
|
{{.Name}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|