From 44fe265d8f10c9c18da28be4b8db05c776e5af5c Mon Sep 17 00:00:00 2001 From: Maryna Balioura Date: Tue, 14 Nov 2023 01:13:24 +0100 Subject: [PATCH] export/html: Search: add message "Nothing matching the query was found." --- strictdoc/export/html/templates/components/form/search.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/strictdoc/export/html/templates/components/form/search.jinja b/strictdoc/export/html/templates/components/form/search.jinja index 7ed2941d9..284e9d46f 100644 --- a/strictdoc/export/html/templates/components/form/search.jinja +++ b/strictdoc/export/html/templates/components/form/search.jinja @@ -20,7 +20,9 @@ {%- if error is none -%} - {%- if search_results|length > 0 -%} + {%- if search_results|length == 0 -%} +
Nothing matching the query was found.
+ {%- elif search_results|length > 0 -%}
Found {{ search_results|length }} results.
{%- endif -%} {%- else -%}