diff options
Diffstat (limited to 'templates/shared/search/code/search.tmpl')
-rw-r--r-- | templates/shared/search/code/search.tmpl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/templates/shared/search/code/search.tmpl b/templates/shared/search/code/search.tmpl index 545ec1ea65..cb873f5a92 100644 --- a/templates/shared/search/code/search.tmpl +++ b/templates/shared/search/code/search.tmpl @@ -7,9 +7,16 @@ <div class="ui error message"> <p>{{ctx.Locale.Tr "search.code_search_unavailable"}}</p> </div> - {{else if .SearchResults}} - {{template "shared/search/code/results" .}} - {{else if .Keyword}} - <div>{{ctx.Locale.Tr "search.no_results"}}</div> + {{else}} + {{if not .CodeIndexerEnabled}} + <div class="ui message"> + <p>{{ctx.Locale.Tr "search.code_search_by_git_grep"}}</p> + </div> + {{end}} + {{if .SearchResults}} + {{template "shared/search/code/results" .}} + {{else if .Keyword}} + <div>{{ctx.Locale.Tr "search.no_results"}}</div> + {{end}} {{end}} </div> |