Browse Source

Fix incorrect "tab" parameter for repo search sub-template (#27755) (#27764)

Backport #27755 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
tags/v1.21.0
Giteabot 7 months ago
parent
commit
95db95ef91
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      templates/explore/repo_search.tmpl

+ 2
- 2
templates/explore/repo_search.tmpl View File

@@ -6,8 +6,8 @@
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
{{if .PageIsExploreRepositories}}
<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">
{{else}}
<input type="hidden" name="tab" value="repositories">
{{else if .TabName}}
<input type="hidden" name="tab" value="{{.TabName}}">
{{end}}
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
</div>

Loading…
Cancel
Save