diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-10-24 10:00:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 02:00:06 +0000 |
commit | def907de7b3cda899846d55f99b0da2640a5274b (patch) | |
tree | e99aa3ae95ed0958beb443fbcaf8cc84df6d395a /templates/explore | |
parent | 6352114a77cb67e8797f2c8552328f684092c42d (diff) | |
download | gitea-def907de7b3cda899846d55f99b0da2640a5274b.tar.gz gitea-def907de7b3cda899846d55f99b0da2640a5274b.zip |
Fix incorrect "tab" parameter for repo search sub-template (#27755)


Diffstat (limited to 'templates/explore')
-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> |