|
1 | 1 | <div class="ui small secondary filter menu">
|
2 |
| - <form id="repo-search-form" class="ui form ignore-dirty tw-flex-1 tw-flex tw-flex-row tw-gap-x-2 gt-ac"> |
3 |
| - {{if .Language}}<input hidden name="language" value="{{.Language}}">{{end}} |
| 2 | + <form id="repo-search-form" class="ui form ignore-dirty tw-flex-1 tw-flex tw-gap-x-2"> |
| 3 | + {{if .Language}}<input type="hidden" name="language" value="{{.Language}}">{{end}} |
| 4 | + {{if .PageIsExploreRepositories}}<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">{{end}} |
| 5 | + {{if .TabName}}<input type="hidden" name="tab" value="{{.TabName}}">{{end}} |
| 6 | + {{if .TopicOnly}}<input type="hidden" name="topic" value="{{.TopicOnly}}">{{end}} |
4 | 7 | <div class="ui small fluid action input tw-flex-1">
|
5 | 8 | {{template "shared/search/input" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.repo_kind")}}
|
6 |
| - {{if .PageIsExploreRepositories}} |
7 |
| - <input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}"> |
8 |
| - {{else if .TabName}} |
9 |
| - <input type="hidden" name="tab" value="{{.TabName}}"> |
10 |
| - {{end}} |
11 | 9 | {{template "shared/search/button"}}
|
12 | 10 | </div>
|
13 | 11 | <!-- Filter -->
|
14 |
| - <div class="ui small dropdown type jump item tw-mr-0"> |
15 |
| - <span class="text"> |
16 |
| - {{ctx.Locale.Tr "filter"}} |
17 |
| - </span> |
| 12 | + <div class="item ui small dropdown jump"> |
| 13 | + <span class="text">{{ctx.Locale.Tr "filter"}}</span> |
18 | 14 | {{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
19 |
| - <div class="menu"> |
| 15 | + <div class="menu flex-items-menu"> |
20 | 16 | <label class="item"><input type="radio" name="clear-filter"> {{ctx.Locale.Tr "filter.clear"}}</label>
|
21 | 17 | <div class="divider"></div>
|
22 | 18 | <label class="item"><input type="radio" name="archived" {{if .IsArchived.Value}}checked{{end}} value="1"> {{ctx.Locale.Tr "filter.is_archived"}}</label>
|
|
36 | 32 | </div>
|
37 | 33 | </div>
|
38 | 34 | <!-- Sort -->
|
39 |
| - <div class="ui small dropdown type jump item gt-mr-0"> |
40 |
| - <span class="text"> |
41 |
| - {{ctx.Locale.Tr "repo.issues.filter_sort"}} |
42 |
| - </span> |
| 35 | + <div class="item ui small dropdown jump"> |
| 36 | + <span class="text">{{ctx.Locale.Tr "repo.issues.filter_sort"}}</span> |
43 | 37 | {{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
44 | 38 | <div class="menu">
|
45 | 39 | <label class="{{if eq .SortType "newest"}}active {{end}}item"><input hidden type="radio" name="sort" {{if eq .SortType "newest"}}checked{{end}} value="newest"> {{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</label>
|
|
61 | 55 | </form>
|
62 | 56 | </div>
|
63 | 57 | {{if and .PageIsExploreRepositories .OnlyShowRelevant}}
|
64 |
| - <div class="ui message explore-relevancy-note"> |
65 |
| - <span data-tooltip-content="{{ctx.Locale.Tr "explore.relevant_repositories_tooltip"}}">{{ctx.Locale.Tr "explore.relevant_repositories" (printf "?only_show_relevant=0&sort=%s&q=%s&language=%s" $.SortType (QueryEscape $.Keyword) (QueryEscape $.Language))}}</span> |
| 58 | + <div class="ui message"> |
| 59 | + <span data-tooltip-content="{{ctx.Locale.Tr "explore.relevant_repositories_tooltip"}}"> |
| 60 | + {{ctx.Locale.Tr "explore.relevant_repositories" (printf "?only_show_relevant=0&sort=%s&q=%s&language=%s" $.SortType (QueryEscape $.Keyword) (QueryEscape $.Language))}} |
| 61 | + </span> |
66 | 62 | </div>
|
67 | 63 | {{end}}
|
68 | 64 | <div class="divider"></div>
|
0 commit comments