|
2 | 2 | <div role="main" aria-label="{{.Title}}" class="page-content repository milestones">
|
3 | 3 | {{template "repo/header" .}}
|
4 | 4 | <div class="ui container">
|
5 |
| - <div class="navbar gt-mb-4"> |
| 5 | + {{template "base/alert" .}} |
| 6 | + |
| 7 | + <div class="list-header"> |
6 | 8 | {{template "repo/issue/navbar" .}}
|
| 9 | + {{template "repo/issue/search" .}} |
7 | 10 | {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
|
8 | 11 | <a class="ui small primary button" href="{{$.Link}}/new">{{.locale.Tr "repo.milestones.new"}}</a>
|
9 | 12 | {{end}}
|
10 | 13 | </div>
|
11 |
| - {{template "base/alert" .}} |
12 | 14 |
|
13 |
| - <div class="list-header"> |
14 |
| - <div class="small-menu-items ui compact tiny menu list-header-toggle"> |
15 |
| - <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{.RepoLink}}/milestones?state=open&q={{$.Keyword}}"> |
16 |
| - {{svg "octicon-milestone" 16 "gt-mr-3"}} |
17 |
| - {{.locale.PrettyNumber .OpenCount}} {{.locale.Tr "repo.issues.open_title"}} |
18 |
| - </a> |
19 |
| - <a class="item{{if .IsShowClosed}} active{{end}}" href="{{.RepoLink}}/milestones?state=closed&q={{$.Keyword}}"> |
20 |
| - {{svg "octicon-check" 16 "gt-mr-3"}} |
21 |
| - {{.locale.PrettyNumber .ClosedCount}} {{.locale.Tr "repo.issues.closed_title"}} |
22 |
| - </a> |
23 |
| - </div> |
24 |
| - |
25 |
| - <!-- Search --> |
26 |
| - <form class="list-header-search ui form ignore-dirty"> |
27 |
| - <div class="ui small search fluid action input"> |
28 |
| - <input type="hidden" name="state" value="{{$.State}}"> |
29 |
| - {{template "shared/searchinput" dict "Value" .Keyword}} |
30 |
| - <button class="ui small icon button" type="submit" aria-label="{{.locale.Tr "explore.search"}}"> |
31 |
| - {{svg "octicon-search"}} |
32 |
| - </button> |
33 |
| - </div> |
34 |
| - </form> |
35 |
| - |
36 |
| - <!-- Sort --> |
37 |
| - <div class="list-header-sort ui small dropdown type jump item"> |
38 |
| - <span class="text"> |
39 |
| - {{.locale.Tr "repo.issues.filter_sort"}} |
40 |
| - </span> |
41 |
| - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
42 |
| - <div class="menu"> |
43 |
| - <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="{{$.Link}}?sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.earliest_due_data"}}</a> |
44 |
| - <a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="{{$.Link}}?sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.latest_due_date"}}</a> |
45 |
| - <a class="{{if eq .SortType "leastcomplete"}}active {{end}}item" href="{{$.Link}}?sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.least_complete"}}</a> |
46 |
| - <a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="{{$.Link}}?sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_complete"}}</a> |
47 |
| - <a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="{{$.Link}}?sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_issues"}}</a> |
48 |
| - <a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="{{$.Link}}?sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.least_issues"}}</a> |
49 |
| - </div> |
50 |
| - </div> |
51 |
| - </div> |
| 15 | + {{template "repo/issue/filters" .}} |
52 | 16 |
|
53 | 17 | <!-- milestone list -->
|
54 | 18 | <div class="milestone-list">
|
|
0 commit comments