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

![image](c546824e-4824-4f4d-bd33-e558c6ddf0ef)


![image](713eb72c-22fb-412b-a867-9cccbf7548ec)
This commit is contained in:
wxiaoguang 2023-10-24 10:00:06 +08:00 committed by GitHub
parent 6352114a77
commit def907de7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>