diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl index 31b00d29e3..8e208fb610 100644 --- a/templates/explore/repo_search.tmpl +++ b/templates/explore/repo_search.tmpl @@ -6,8 +6,8 @@ {{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}} {{if .PageIsExploreRepositories}} - {{else}} - + {{else if .tab}} + {{end}} diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 426b5f042a..ddd6f074d1 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -20,7 +20,7 @@ {{template "user/dashboard/feeds" .}} {{else if eq .TabName "stars"}}
- {{template "explore/repo_search" .}} + {{template "explore/repo_search" (dict "." . "tab" "stars")}} {{template "explore/repo_list" .}} {{template "base/paginate" .}}
@@ -31,7 +31,7 @@ {{else if eq .TabName "overview"}}
{{.ProfileReadme | Str2html}}
{{else}} - {{template "explore/repo_search" .}} + {{template "explore/repo_search" (dict "ctxData" . "tab" "repositories")}} {{template "explore/repo_list" .}} {{template "base/paginate" .}} {{end}}