diff options
author | Giteabot <teabot@gitea.io> | 2023-10-24 11:01:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 11:01:26 +0800 |
commit | 95db95ef91f50b2960e568161d29ada7eaafd573 (patch) | |
tree | 2bccc59c69765a17cd41850414eaa00a7cca528f /templates | |
parent | ffab2b7e4f59a05a99a783a193e1899d8907f16b (diff) | |
download | gitea-95db95ef91f50b2960e568161d29ada7eaafd573.tar.gz gitea-95db95ef91f50b2960e568161d29ada7eaafd573.zip |
Fix incorrect "tab" parameter for repo search sub-template (#27755) (#27764)
Backport #27755 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/explore/repo_search.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl index 31b00d29e3..136d3f8e81 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}} <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> |