Skip to content

Commit

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

export/html: Search: add message "Nothing matching the query was found."
  • Loading branch information
mettta authored Nov 14, 2023
2 parents b13a3cb + 44fe265 commit 6ca6926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion strictdoc/export/html/templates/components/form/search.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
</form>

{%- if error is none -%}
{%- if search_results|length > 0 -%}
{%- if search_results|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>
{%- endif -%}
{%- else -%}
Expand Down

0 comments on commit 6ca6926

Please sign in to comment.