Commit 8c279865 authored by Tobias Buckdahn's avatar Tobias Buckdahn

Show info on zero results

parent 65debdf8
......@@ -3,6 +3,7 @@ en:
FOUND_RESULTS: "Found %s results"
FOUND_IN: "in <span>%s</span>"
SEARCH_PLACEHOLDER: 'Search ...'
NO_RESULTS: No results found
META:
DESCRIPTION: 'A visual dictionary for LEGO® building techniques'
......@@ -93,6 +94,7 @@ de:
FOUND_RESULTS: "%s Treffer"
FOUND_IN: "in <span>%s</span>"
SEARCH_PLACEHOLDER: 'Suche ...'
NO_RESULTS: Keine Treffer gefunden
META:
DESCRIPTION: 'Ein grafisches Nachschlagewerk für LEGO® Bautechniken'
......
......@@ -9,4 +9,10 @@
</span>
</p>
{% include "partials/items/base.html.twig" with { items: tntsearch_results.hits, item_wrapper_classes: 'col-12 col-sm-6 col-lg-3' } %}
{% if tntsearch_results.number_of_hits == 0 %}
<p class="h5 pb-2 text-center text-muted">{{ "PLUGIN_TNTSEARCH.NO_RESULTS"|t }}</p>
{% else %}
{% include "partials/items/base.html.twig" with { items: tntsearch_results.hits, item_wrapper_classes: 'col-12 col-sm-6 col-lg-3' } %}
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment