{{if .CodeIndexerUnavailable}}
{{ctx.Locale.Tr "search.code_search_unavailable"}}
{{else}}
{{if .CodeSearchPath}}
@
{{$href := ""}}
{{- range $i, $path := StringUtils.Split .CodeSearchPath "/" -}}
{{if eq $i 0}}
{{$href = $path}}
{{else}}
{{$href = StringUtils.Join (StringUtils.Make $href $path) "/"}}
{{end}}
/
{{$path}}
{{- end -}}
{{end}}
{{if .CodeIndexerDisabled}}
{{ctx.Locale.Tr "search.code_search_by_git_grep"}}
{{end}}
{{if .SearchResults}}
{{template "shared/search/code/results" .}}
{{else if .Keyword}}
{{ctx.Locale.Tr "search.no_results"}}
{{end}}
{{end}}