From 3c45cf8494fcd29e1a99b0ee6f253808eb607053 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Thu, 20 Feb 2020 21:53:55 +0200 Subject: Add detected file language to code search (#10256) Move langauge detection to separate module to be more reusable Add option to disable vendored file exclusion from file search Allways show all language stats for search --- templates/explore/code.tmpl | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'templates/explore/code.tmpl') diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index 742ed59442..eb7da976b8 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -16,13 +16,22 @@

{{.i18n.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html }}

+
+ {{range $term := .SearchResultLanguages}} + + + {{$term.Language}} +
{{$term.Count}}
+
+ {{end}} +
-- cgit v1.2.3