search: display a message when no result found (#28283)

This commit is contained in:
Paul Marillonnet 2018-11-23 14:00:13 +01:00 committed by Thomas NOEL
parent 5e5d3d4f72
commit 0027ce92c8
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{% if results.data %}
{% load i18n %}
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service.label }}</p>{% endif %}
{% if results.data %}
<div class="links-list">
<ul>
{% for item in results.data %}
@ -9,4 +10,8 @@
{% endfor %}
</ul>
</div>
{% else %}
<div class="infonotice">
{% trans "…no result found." %}
</div>
{% endif %}

View File

@ -1,5 +1,6 @@
{% if results.data %}
{% load i18n %}
{% if cell.has_multiple_search_services %}<p class="search-service-label">{{ search_service.label }}</p>{% endif %}
{% if results.data %}
<div class="links-list">
<ul>
{% for item in results.data %}
@ -11,4 +12,8 @@
{% endfor %}
</ul>
</div>
{% else %}
<div class="infonotice">
{% trans "…no result found." %}
</div>
{% endif %}