Add no results found
This commit is contained in:
parent
6263e65bb9
commit
cce962e845
1 changed files with 25 additions and 17 deletions
|
@ -1,5 +1,6 @@
|
|||
{% load result_filters %}
|
||||
{% include "title.html" %}
|
||||
{% if query %}
|
||||
{% if results %}
|
||||
{% for result in results %}
|
||||
<li class="result" is="mwmbl-result">
|
||||
|
@ -19,6 +20,13 @@
|
|||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<li class="home">
|
||||
<h1>
|
||||
No results found for "{{query}}".
|
||||
</h1>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<li class="home">
|
||||
<h1>
|
||||
|
|
Loading…
Reference in a new issue