From 041ec62be7f81ebdc338d7906826ec95406e88fe Mon Sep 17 00:00:00 2001 From: Mike L Date: Mon, 5 Apr 2021 00:12:30 +0200 Subject: [PATCH] Use semantic dropdown for code search query type Add comments to CSS rules --- templates/explore/code.tmpl | 94 ++++++++++++++++++------------------- templates/repo/search.tmpl | 22 ++++----- web_src/less/_base.less | 9 ++++ 3 files changed, 64 insertions(+), 61 deletions(-) diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index b22fe039a2a93..222bbb8aae218 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -3,29 +3,27 @@ {{template "explore/navbar" .}}
- -
-
- -
-
- -
-
- -
-
-
-
+ +
+ + + +
+ +
{{if .SearchResults}} -

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

+

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

{{range $term := .SearchResultLanguages}} @@ -35,34 +33,34 @@ {{end}}
- + {{else}}
{{$.i18n.Tr "explore.code_no_results"}}
{{end}} diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl index ab9e9be2d6b1c..35f7cffbffcbc 100644 --- a/templates/repo/search.tmpl +++ b/templates/repo/search.tmpl @@ -5,20 +5,16 @@