summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/search_results.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-08-06 11:17:12 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-08-06 11:17:12 +0200
commit7bf15f40e5f75007f7887661408945079026b202 (patch)
treeb44e40c410196c3dbf7f993c9ef623e3f1f42c0a /hyperkitty/templates/search_results.html
parent3c1e355bdf068aaaaf7594897e1b78caf732d4d2 (diff)
downloadhyperkitty-7bf15f40e5f75007f7887661408945079026b202.tar.gz
hyperkitty-7bf15f40e5f75007f7887661408945079026b202.tar.xz
hyperkitty-7bf15f40e5f75007f7887661408945079026b202.zip
Handle an empty search query
Diffstat (limited to 'hyperkitty/templates/search_results.html')
-rw-r--r--hyperkitty/templates/search_results.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/hyperkitty/templates/search_results.html b/hyperkitty/templates/search_results.html
index 45d8e29..16a0019 100644
--- a/hyperkitty/templates/search_results.html
+++ b/hyperkitty/templates/search_results.html
@@ -61,11 +61,16 @@ Search results for "{{ query }}"{% if mlist %} - {{ mlist.display_name|default:m
</div>
- {% for message in messages %}
- {% include "messages/summary_message.html" %}
- {% empty %}
- <p>Sorry no email could be found for this query.</p>
- {% endfor %}
+ {% if query %}
+ {% for message in messages %}
+ {% include "messages/summary_message.html" %}
+ {% empty %}
+ <p>Sorry no email could be found for this query.</p>
+ {% endfor %}
+ {% else %}
+ <p>Sorry but your query looks empty.</p>
+ <p style="font-style:italic;font-size:small;color:#ccc">these are not the messages you are looking for</p>
+ {% endif %}
{% include "paginator.html" with pager=messages notbydate=True %}