diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 166616ba91..12a66773ca 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -182,7 +182,6 @@ org_kind = Search orgs... team_kind = Search teams... code_kind = Search code... code_search_unavailable = Code search is currently not available. Please contact the site administrator. -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. package_kind = Search packages... project_kind = Search projects... branch_kind = Search branches... diff --git a/templates/shared/search/code/search.tmpl b/templates/shared/search/code/search.tmpl index 923bfe00fc..45f8088881 100644 --- a/templates/shared/search/code/search.tmpl +++ b/templates/shared/search/code/search.tmpl @@ -31,11 +31,6 @@ {{end}} - {{if .CodeIndexerDisabled}} -
- {{end}} {{if .SearchResults}} {{template "shared/search/code/results" .}} {{else if .Keyword}} diff --git a/tests/integration/explore_code_test.go b/tests/integration/explore_code_test.go index d84b47cf05..02b3a6a0f7 100644 --- a/tests/integration/explore_code_test.go +++ b/tests/integration/explore_code_test.go @@ -20,11 +20,6 @@ func TestExploreCodeSearchIndexer(t *testing.T) { resp := MakeRequest(t, req, http.StatusOK) doc := NewHTMLParser(t, resp.Body).Find(".explore") - msg := doc. - Find(".ui.container"). - Find(".ui.message[data-test-tag=grep]") - assert.EqualValues(t, 0, msg.Length()) - doc.Find(".file-body").Each(func(i int, sel *goquery.Selection) { assert.Positive(t, sel.Find(".code-inner").Find(".search-highlight").Length(), 0) }) diff --git a/tests/integration/repo_search_test.go b/tests/integration/repo_search_test.go index 6189dc1150..3c8ceb0896 100644 --- a/tests/integration/repo_search_test.go +++ b/tests/integration/repo_search_test.go @@ -108,9 +108,6 @@ func testSearch(t *testing.T, url string, expected []string, indexer bool) { doc := NewHTMLParser(t, resp.Body) container := doc.Find(".repository").Find(".ui.container") - grepMsg := container.Find(".ui.message[data-test-tag=grep]") - assert.EqualValues(t, indexer, len(grepMsg.Nodes) == 0) - branchDropdown := container.Find(".js-branch-tag-selector") assert.EqualValues(t, indexer, len(branchDropdown.Nodes) == 0)