mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
Added a nicer message when no results are returned.
This commit is contained in:
parent
101e36d9e0
commit
2979714a0c
@ -1,3 +1,9 @@
|
||||
{% if results|length == 0 %}
|
||||
<p><em>No questions or answers found for your query.</em></p>
|
||||
{% if site %}
|
||||
<p>Try searching in another StackExchange website by using the links on the right.</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<ul id="search-results">
|
||||
{% for r in results %}
|
||||
<li>
|
||||
@ -56,4 +62,5 @@
|
||||
<li class="next disabled"><a href="#">→ Next</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
Loading…
Reference in New Issue
Block a user