add "no results" message in search
This commit is contained in:
parent
c27a0aee93
commit
20fe00e8f7
2 changed files with 13 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2022-03-14 15:24+0100\n"
|
"POT-Creation-Date: 2022-03-14 16:24+0100\n"
|
||||||
"PO-Revision-Date: 2022-03-11 23:37+0100\n"
|
"PO-Revision-Date: 2022-03-11 23:37+0100\n"
|
||||||
"Last-Translator: Stefan Wehrmeyer <stefan.wehrmeyer@okfn.de>\n"
|
"Last-Translator: Stefan Wehrmeyer <stefan.wehrmeyer@okfn.de>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
|
@ -357,6 +357,11 @@ msgstr "Alle zutreffenden Vorhaben"
|
||||||
msgid "%s matching plans"
|
msgid "%s matching plans"
|
||||||
msgstr "%s zutreffenden Vorhaben"
|
msgstr "%s zutreffenden Vorhaben"
|
||||||
|
|
||||||
|
#: froide_govplan/templates/froide_govplan/plugins/card_cols.html:6
|
||||||
|
msgid ""
|
||||||
|
"Could not find any results. Try different keywords or browse the categories."
|
||||||
|
msgstr "Keine Ergebnisse gefunden. Versuchen Sie es mit anderen Stichworten oder durchsuchen Sie passende Kategorien."
|
||||||
|
|
||||||
#: froide_govplan/templates/froide_govplan/plugins/search.html:4
|
#: froide_govplan/templates/froide_govplan/plugins/search.html:4
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#| msgid "Government plans"
|
#| msgid "Government plans"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% if object_list|length == 0 %}
|
||||||
|
<p>
|
||||||
|
{% trans "Could not find any results. Try different keywords or browse the categories." %}
|
||||||
|
</p>
|
||||||
|
{% else %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% for object in object_list %}
|
{% for object in object_list %}
|
||||||
<div class="col col-12 col-md-6 col-lg-4 d-flex mb-3">
|
<div class="col col-12 col-md-6 col-lg-4 d-flex mb-3">
|
||||||
|
|
@ -25,3 +31,4 @@
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue