fix code search template

This commit is contained in:
Shiny Nematoda 2024-04-11 14:52:37 +00:00
parent f89f7ced5f
commit aec787b927
4 changed files with 6 additions and 10 deletions

View file

@ -86,7 +86,7 @@ func Search(ctx *context.Context) {
}
}
ctx.Data["CodeIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
ctx.Data["CodeIndexerDisabled"] = !setting.Indexer.RepoIndexerEnabled
ctx.Data["Repo"] = ctx.Repo.Repository
ctx.Data["SourcePath"] = ctx.Repo.Repository.Link()
ctx.Data["SearchResults"] = searchResults