2023-04-30 18:42:49 +05:30
|
|
|
{{if or .OpenMilestones .ClosedMilestones}}
|
|
|
|
<div class="ui icon search input">
|
2023-08-26 05:05:10 +05:30
|
|
|
<i class="icon">{{svg "octicon-search" 16}}</i>
|
2023-09-25 14:26:50 +05:30
|
|
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_milestones"}}">
|
2023-04-30 18:42:49 +05:30
|
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{end}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<div class="no-select item">{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}</div>
|
2023-04-30 18:42:49 +05:30
|
|
|
{{if and (not .OpenMilestones) (not .ClosedMilestones)}}
|
2023-05-29 19:40:06 +05:30
|
|
|
<div class="disabled item">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.issues.new.no_items"}}
|
2023-04-30 18:42:49 +05:30
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{if .OpenMilestones}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
<div class="header">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.issues.new.open_milestone"}}
|
2023-04-30 18:42:49 +05:30
|
|
|
</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">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.issues.new.closed_milestone"}}
|
2023-04-30 18:42:49 +05:30
|
|
|
</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}}
|