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 %}
|
{% 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>
|
||||||
|
|
Loading…
Reference in a new issue