From 0027ce92c8d516f71d512a4d662b00550a6e031d Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Fri, 23 Nov 2018 14:00:13 +0100 Subject: [PATCH] search: display a message when no result found (#28283) --- combo/apps/search/templates/combo/search-cell-results.html | 7 ++++++- data/themes/gadjo/templates/combo/search-cell-results.html | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/combo/apps/search/templates/combo/search-cell-results.html b/combo/apps/search/templates/combo/search-cell-results.html index e1a7f504..75e29681 100644 --- a/combo/apps/search/templates/combo/search-cell-results.html +++ b/combo/apps/search/templates/combo/search-cell-results.html @@ -1,5 +1,6 @@ -{% if results.data %} +{% load i18n %} {% if cell.has_multiple_search_services %}

{{ search_service.label }}

{% endif %} +{% if results.data %} +{% else %} +
+ {% trans "…no result found." %} +
{% endif %} diff --git a/data/themes/gadjo/templates/combo/search-cell-results.html b/data/themes/gadjo/templates/combo/search-cell-results.html index f1f8c698..7959bc44 100644 --- a/data/themes/gadjo/templates/combo/search-cell-results.html +++ b/data/themes/gadjo/templates/combo/search-cell-results.html @@ -1,5 +1,6 @@ -{% if results.data %} +{% load i18n %} {% if cell.has_multiple_search_services %}

{{ search_service.label }}

{% endif %} +{% if results.data %} +{% else %} +
+ {% trans "…no result found." %} +
{% endif %}