Skip to content

Commit

Permalink
export/html: Search: add case with empty search query
Browse files Browse the repository at this point in the history
  • Loading branch information
mettta committed Nov 14, 2023
1 parent c536497 commit 7fa924d
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 7fa924d

Please sign in to comment.