add "no results" message in search
This commit is contained in:
parent
c27a0aee93
commit
20fe00e8f7
2 changed files with 13 additions and 1 deletions
|
|
@ -1,5 +1,11 @@
|
|||
{% 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">
|
||||
{% for object in object_list %}
|
||||
<div class="col col-12 col-md-6 col-lg-4 d-flex mb-3">
|
||||
|
|
@ -25,3 +31,4 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue