From 4f50bd54fe3b159d27692d51afb46fef4808076a Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Sun, 24 Apr 2022 11:15:25 +0300 Subject: [PATCH] Title search: Fix a bug and show No results instead of empty list when no results --- misc/view_title_search.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/misc/view_title_search.html b/misc/view_title_search.html index 316281f..d09ac74 100644 --- a/misc/view_title_search.html +++ b/misc/view_title_search.html @@ -3,13 +3,17 @@ {{define "body"}}

{{block "search results for" .Query}}Search results for ‘{{.}}’{{end}}

-

{{block "search desc" .}}Every hypha name has been compared with the query. Hyphae that have matched the query are listed below.{{end}}

- + {{if len .Results}} +

{{block "search desc" .}}Every hypha name has been compared with the query. Hyphae that have matched the query are listed below.{{end}}

+ + {{else}} +

{{block "search no results" .}}No results{{end}}

+ {{end}}
{{end}} \ No newline at end of file