Skip to content

Commit

Permalink
Merge pull request strictdoc-project#1456 from strictdoc-project/_sea…
Browse files Browse the repository at this point in the history
…rch_result

export/html: Search: add case with empty search query
  • Loading branch information
mettta authored Nov 14, 2023
2 parents c536497 + 7fa924d commit 25ed23a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</form>

{%- if error is none -%}
{%- if search_results|length == 0 -%}
{%- if search_results|length == 0 and search_value|length > 0 -%}
<div class="sdoc-search-success">Nothing matching the query was found.</div>
{%- elif search_results|length > 0 -%}
<div class="sdoc-search-success">Found <b>{{ search_results|length }}</b> results.</div>
Expand Down

0 comments on commit 25ed23a

Please sign in to comment.