diff options
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/code.tmpl | 2 | ||||
-rw-r--r-- | templates/explore/repo_list.tmpl | 2 | ||||
-rw-r--r-- | templates/explore/search.tmpl | 13 | ||||
-rw-r--r-- | templates/explore/user_list.tmpl | 4 | ||||
-rw-r--r-- | templates/explore/users.tmpl | 2 |
5 files changed, 12 insertions, 11 deletions
diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index 2298575887..039933fa2d 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -2,7 +2,7 @@ <div role="main" aria-label="{{.Title}}" class="page-content explore users"> {{template "explore/navbar" .}} <div class="ui container"> - {{template "code/searchcombo" .}} + {{template "shared/search/code/search" .}} </div> </div> {{template "base/footer" .}} diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 0c466dffaf..2bda50671f 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -60,7 +60,7 @@ </div> {{else}} <div> - {{ctx.Locale.Tr "explore.repo_no_results"}} + {{ctx.Locale.Tr "search.no_results"}} </div> {{end}} </div> diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl index 2bb5f319d1..54d995989a 100644 --- a/templates/explore/search.tmpl +++ b/templates/explore/search.tmpl @@ -1,12 +1,13 @@ -<div class="ui secondary filter menu gt-ac gt-mx-0"> +<div class="ui small secondary filter menu gt-ac gt-mx-0"> <form class="ui form ignore-dirty gt-f1"> - <div class="ui fluid action input"> - {{template "shared/searchinput" dict "Value" .Keyword}} - <button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button> - </div> + {{if .PageIsExploreUsers}} + {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}} + {{else}} + {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}} + {{end}} </form> <!-- Sort --> - <div class="ui dropdown type jump item gt-mr-0"> + <div class="ui small dropdown type jump item gt-mr-0"> <span class="text"> {{ctx.Locale.Tr "repo.issues.filter_sort"}} </span> diff --git a/templates/explore/user_list.tmpl b/templates/explore/user_list.tmpl index 0d661d53cb..fb86fbbea2 100644 --- a/templates/explore/user_list.tmpl +++ b/templates/explore/user_list.tmpl @@ -26,6 +26,8 @@ </div> </div> {{else}} - <div class="flex-item">{{ctx.Locale.Tr "explore.user_no_results"}}</div> + <div class="flex-item"> + {{ctx.Locale.Tr "search.no_results"}} + </div> {{end}} </div> diff --git a/templates/explore/users.tmpl b/templates/explore/users.tmpl index 7e15ae3d47..e9046125c6 100644 --- a/templates/explore/users.tmpl +++ b/templates/explore/users.tmpl @@ -3,9 +3,7 @@ {{template "explore/navbar" .}} <div class="ui container"> {{template "explore/search" .}} - {{template "explore/user_list" .}} - {{template "base/paginate" .}} </div> </div> |