diff options
author | Shiny Nematoda <snematoda.751k2@aleeas.com> | 2024-03-20 13:22:43 +0100 |
---|---|---|
committer | Shiny Nematoda <snematoda.751k2@aleeas.com> | 2024-03-20 13:31:36 +0100 |
commit | 4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c (patch) | |
tree | a389d99e20deeff685d3ce6176e054511e889262 /routers | |
parent | fixes for port (diff) | |
download | forgejo-4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c.tar.xz forgejo-4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c.zip |
simplify template
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/search.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/search.go b/routers/web/repo/search.go index 273b90c97e..460378ce05 100644 --- a/routers/web/repo/search.go +++ b/routers/web/repo/search.go @@ -41,7 +41,7 @@ func Search(ctx *context.Context) { } if setting.Indexer.RepoIndexerEnabled { - ctx.Data["CodeIndexerEnabled"] = true + ctx.Data["CodeIndexerDisabled"] = false total, searchResults, searchResultLanguages, err := code_indexer.PerformSearch(ctx, &code_indexer.SearchOptions{ RepoIDs: []int64{ctx.Repo.Repository.ID}, @@ -77,7 +77,7 @@ func Search(ctx *context.Context) { return } - ctx.Data["CodeIndexerEnabled"] = false + ctx.Data["CodeIndexerDisabled"] = true ctx.Data["SearchResults"] = data pager := context.NewPagination(len(data), setting.UI.RepoSearchPagingNum, page, 5) |