Add no results found

This commit is contained in:
Daoud Clarke 2023-11-08 08:59:22 +00:00
parent 6263e65bb9
commit cce962e845

View file

@ -1,5 +1,6 @@
{% load result_filters %} {% load result_filters %}
{% include "title.html" %} {% include "title.html" %}
{% if query %}
{% if results %} {% if results %}
{% for result in results %} {% for result in results %}
<li class="result" is="mwmbl-result"> <li class="result" is="mwmbl-result">
@ -19,6 +20,13 @@
</div> </div>
</li> </li>
{% endfor %} {% endfor %}
{% else %}
<li class="home">
<h1>
No results found for "{{query}}".
</h1>
</li>
{% endif %}
{% else %} {% else %}
<li class="home"> <li class="home">
<h1> <h1>