From 7fa924d7d5b53195b72367ab2f26d9051c380dfe Mon Sep 17 00:00:00 2001 From: Maryna Balioura Date: Tue, 14 Nov 2023 15:26:14 +0100 Subject: [PATCH] export/html: Search: add case with empty search query --- strictdoc/export/html/templates/components/form/search.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strictdoc/export/html/templates/components/form/search.jinja b/strictdoc/export/html/templates/components/form/search.jinja index 284e9d46f..340f03f2e 100644 --- a/strictdoc/export/html/templates/components/form/search.jinja +++ b/strictdoc/export/html/templates/components/form/search.jinja @@ -20,7 +20,7 @@ {%- if error is none -%} - {%- if search_results|length == 0 -%} + {%- if search_results|length == 0 and search_value|length > 0 -%}
Nothing matching the query was found.
{%- elif search_results|length > 0 -%}
Found {{ search_results|length }} results.