|
5 | 5 | <div class="ui stackable grid">
|
6 | 6 | <div class="four wide column">
|
7 | 7 | <div class="ui secondary vertical filter menu">
|
8 |
| - <a class="item" href="{{.Link}}?type=your_repositories&sort={{$.SortType}}&state={{.State}}"> |
| 8 | + <a class="item" href="{{.Link}}?type=your_repositories&sort={{$.SortType}}&state={{.State}}&q={{$.Keyword}}"> |
9 | 9 | {{.i18n.Tr "home.issues.in_your_repos"}}
|
10 | 10 | <strong class="ui right">{{.Total}}</strong>
|
11 | 11 | </a>
|
|
25 | 25 | {{$Repo.ID}}%2C
|
26 | 26 | {{end}}
|
27 | 27 | {{end}}
|
28 |
| - ]&sort={{$.SortType}}&state={{$.State}}" title="{{.FullName}}"> |
| 28 | + ]&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}" title="{{.FullName}}"> |
29 | 29 | <span class="text truncate">{{$Repo.FullName}}</span>
|
30 | 30 | <div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{index $.Counts $Repo.ID}}</div>
|
31 | 31 | </a>
|
|
34 | 34 | </div>
|
35 | 35 | </div>
|
36 | 36 | <div class="twelve wide column content">
|
37 |
| - <div class="ui compact tiny menu"> |
38 |
| - <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open"> |
39 |
| - {{svg "octicon-issue-opened" 16 "mr-3"}} |
40 |
| - {{.i18n.Tr "repo.milestones.open_tab" .MilestoneStats.OpenCount}} |
41 |
| - </a> |
42 |
| - <a class="item{{if .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed"> |
43 |
| - {{svg "octicon-issue-closed" 16 "mr-3"}} |
44 |
| - {{.i18n.Tr "repo.milestones.close_tab" .MilestoneStats.ClosedCount}} |
45 |
| - </a> |
46 |
| - </div> |
47 |
| - <div class="ui right floated secondary filter menu"> |
48 |
| - <!-- Sort --> |
49 |
| - <div class="ui dropdown type jump item"> |
50 |
| - <span class="text"> |
51 |
| - {{.i18n.Tr "repo.issues.filter_sort"}} |
52 |
| - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
53 |
| - </span> |
54 |
| - <div class="menu"> |
55 |
| - <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> |
56 |
| - <a class="{{if eq .SortType "furthestduedate"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> |
57 |
| - <a class="{{if eq .SortType "leastcomplete"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_complete"}}</a> |
58 |
| - <a class="{{if eq .SortType "mostcomplete"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_complete"}}</a> |
59 |
| - <a class="{{if eq .SortType "mostissues"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_issues"}}</a> |
60 |
| - <a class="{{if eq .SortType "leastissues"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_issues"}}</a> |
| 37 | + <div class="ui three column stackable grid"> |
| 38 | + <div class="column"> |
| 39 | + <div class="ui compact tiny menu"> |
| 40 | + <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}"> |
| 41 | + {{svg "octicon-issue-opened" 16 "mr-3"}} |
| 42 | + {{.i18n.Tr "repo.milestones.open_tab" .MilestoneStats.OpenCount}} |
| 43 | + </a> |
| 44 | + <a class="item{{if .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}"> |
| 45 | + {{svg "octicon-issue-closed" 16 "mr-3"}} |
| 46 | + {{.i18n.Tr "repo.milestones.close_tab" .MilestoneStats.ClosedCount}} |
| 47 | + </a> |
61 | 48 | </div>
|
62 | 49 | </div>
|
63 |
| - </div> |
64 |
| - |
| 50 | + <div class="column center aligned"> |
| 51 | + <form class="ui form ignore-dirty"> |
| 52 | + <div class="ui search fluid action input"> |
| 53 | + <input type="hidden" name="type" value="{{$.ViewType}}"/> |
| 54 | + <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]"/> |
| 55 | + <input type="hidden" name="sort" value="{{$.SortType}}"/> |
| 56 | + <input type="hidden" name="state" value="{{$.State}}"/> |
| 57 | + <input name="q" value="{{$.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..."> |
| 58 | + <button class="ui blue button" type="submit">{{.i18n.Tr "explore.search"}}</button> |
| 59 | + </div> |
| 60 | + </form> |
| 61 | + </div> |
| 62 | + <div class="column right aligned df ac je"> |
| 63 | + <!-- Sort --> |
| 64 | + <div class="ui dropdown type jump item"> |
| 65 | + <span class="text"> |
| 66 | + {{.i18n.Tr "repo.issues.filter_sort"}} |
| 67 | + {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
| 68 | + </span> |
| 69 | + <div class="menu"> |
| 70 | + <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> |
| 71 | + <a class="{{if eq .SortType "furthestduedate"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> |
| 72 | + <a class="{{if eq .SortType "leastcomplete"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.least_complete"}}</a> |
| 73 | + <a class="{{if eq .SortType "mostcomplete"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.most_complete"}}</a> |
| 74 | + <a class="{{if eq .SortType "mostissues"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.most_issues"}}</a> |
| 75 | + <a class="{{if eq .SortType "leastissues"}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.milestones.filter_sort.least_issues"}}</a> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </div> |
65 | 80 | <div class="milestone list">
|
66 | 81 | {{range .Milestones}}
|
67 | 82 | <li class="item">
|
|
0 commit comments