1
0
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:
Samuel Lai 2012-02-11 16:30:36 +11:00
parent 101e36d9e0
commit 2979714a0c

View File

@ -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="#">&rarr; Next</a></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}