Skip to content

Commit

Permalink
export/html: Search: add message "Nothing matching the query was found."
Browse files Browse the repository at this point in the history
  • Loading branch information
mettta committed Nov 14, 2023
1 parent b13a3cb commit 44fe265
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 44fe265

Please sign in to comment.