]> source.dussan.org Git - gitea.git/commit
Fix code search input for different views (#30678)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 26 Apr 2024 11:21:04 +0000 (19:21 +0800)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 11:21:04 +0000 (11:21 +0000)
commit993736d838c36e26951b6cfea9c6a549958addd1
tree4e088d12ee60a918c26ee988c25cdb4e92a5651a
parentcd70ab31cdee8116055819bf67bcf374e2aa6172
Fix code search input for different views (#30678)

Now only show the "code search" on the repo home page, because it only
does global search.
So do not show it when viewing file or directory to avoid misleading
users (it doesn't search in a directory)
routers/web/repo/commit.go
routers/web/repo/compare.go
routers/web/repo/pull.go
templates/repo/home.tmpl