loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(ui): remove code search git grep warning (#6794)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6794
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Shiny Nematoda <snematoda@noreply.codeberg.org>
Co-authored-by: Robert Wolff <mahlzahn@posteo.de>
Co-committed-by: Robert Wolff <mahlzahn@posteo.de>

authored by

Robert Wolff
Robert Wolff
and committed by
0ko
862f4ad6 0d10d097

-14
-1
options/locale/locale_en-US.ini
··· 182 182 team_kind = Search teams... 183 183 code_kind = Search code... 184 184 code_search_unavailable = Code search is currently not available. Please contact the site administrator. 185 - code_search_by_git_grep = Current code search results are provided by "git grep". There might be better results if site administrator enables code indexer. 186 185 package_kind = Search packages... 187 186 project_kind = Search projects... 188 187 branch_kind = Search branches...
-5
templates/shared/search/code/search.tmpl
··· 31 31 </span> 32 32 </div> 33 33 {{end}} 34 - {{if .CodeIndexerDisabled}} 35 - <div class="ui message" data-test-tag="grep"> 36 - <p>{{ctx.Locale.Tr "search.code_search_by_git_grep"}}</p> 37 - </div> 38 - {{end}} 39 34 {{if .SearchResults}} 40 35 {{template "shared/search/code/results" .}} 41 36 {{else if .Keyword}}
-5
tests/integration/explore_code_test.go
··· 20 20 resp := MakeRequest(t, req, http.StatusOK) 21 21 doc := NewHTMLParser(t, resp.Body).Find(".explore") 22 22 23 - msg := doc. 24 - Find(".ui.container"). 25 - Find(".ui.message[data-test-tag=grep]") 26 - assert.EqualValues(t, 0, msg.Length()) 27 - 28 23 doc.Find(".file-body").Each(func(i int, sel *goquery.Selection) { 29 24 assert.Positive(t, sel.Find(".code-inner").Find(".search-highlight").Length(), 0) 30 25 })
-3
tests/integration/repo_search_test.go
··· 108 108 doc := NewHTMLParser(t, resp.Body) 109 109 container := doc.Find(".repository").Find(".ui.container") 110 110 111 - grepMsg := container.Find(".ui.message[data-test-tag=grep]") 112 - assert.EqualValues(t, indexer, len(grepMsg.Nodes) == 0) 113 - 114 111 branchDropdown := container.Find(".js-branch-tag-selector") 115 112 assert.EqualValues(t, indexer, len(branchDropdown.Nodes) == 0) 116 113