From 432eeb58440206fdd3bec7f5e9d1379bfdf67ab5 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 21 Oct 2023 23:30:07 +0200 Subject: [PATCH] [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 commit 83fc797493b4a290642c4dc2d47cd3ef9e656bf6) (cherry picked from commit a6df606750ac490e777f1dfc8d2ef34cec1a675e) --- templates/explore/repo_search.tmpl | 4 ++-- templates/user/profile.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl index 31b00d29e3..8e208fb610 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}} - {{else}} - + {{else if .tab}} + {{end}} diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 426b5f042a..ddd6f074d1 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -20,7 +20,7 @@ {{template "user/dashboard/feeds" .}} {{else if eq .TabName "stars"}}
- {{template "explore/repo_search" .}} + {{template "explore/repo_search" (dict "." . "tab" "stars")}} {{template "explore/repo_list" .}} {{template "base/paginate" .}}
@@ -31,7 +31,7 @@ {{else if eq .TabName "overview"}}
{{.ProfileReadme | Str2html}}
{{else}} - {{template "explore/repo_search" .}} + {{template "explore/repo_search" (dict "ctxData" . "tab" "repositories")}} {{template "explore/repo_list" .}} {{template "base/paginate" .}} {{end}}