mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 22:59:29 +01:00
[GITEA] Use correct tab value for repo search
- Use the correct tab value for repo search by letting the templates pass the right value. - Resolves https://codeberg.org/forgejo/forgejo/issues/1516 (cherry picked from commit83fc797493
) (cherry picked from commita6df606750
)
This commit is contained in:
parent
299e437379
commit
432eeb5844
2 changed files with 4 additions and 4 deletions
|
@ -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 .tab}}
|
||||
<input type="hidden" name="tab" value="{{.tab}}">
|
||||
{{end}}
|
||||
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{template "user/dashboard/feeds" .}}
|
||||
{{else if eq .TabName "stars"}}
|
||||
<div class="stars">
|
||||
{{template "explore/repo_search" .}}
|
||||
{{template "explore/repo_search" (dict "." . "tab" "stars")}}
|
||||
{{template "explore/repo_list" .}}
|
||||
{{template "base/paginate" .}}
|
||||
</div>
|
||||
|
@ -31,7 +31,7 @@
|
|||
{{else if eq .TabName "overview"}}
|
||||
<div id="readme_profile" class="markup">{{.ProfileReadme | Str2html}}</div>
|
||||
{{else}}
|
||||
{{template "explore/repo_search" .}}
|
||||
{{template "explore/repo_search" (dict "ctxData" . "tab" "repositories")}}
|
||||
{{template "explore/repo_list" .}}
|
||||
{{template "base/paginate" .}}
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in a new issue