[enh] suggestion rendering

This commit is contained in:
asciimoo 2013-11-13 19:35:32 +01:00
parent e50a72b0e3
commit 33969ca670
2 changed files with 9 additions and 3 deletions

View file

@ -136,3 +136,6 @@ tr:hover td { background: #DDDDDD; }
}
#results { margin-left: 10px; margin-top: 10px; }
#suggestions { max-width: 50em;}
#suggestions span { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; }

View file

@ -5,9 +5,12 @@
{% include 'search.html' %}
</div>
<div id="results">
<div>
{% if suggestions %}
<div id="suggestions">Suggestions: {% for suggestion in suggestions %}<span>{{ suggestion }}</span>{% endfor %}</div>
{% endif %}
<div>
Number of results: {{ number_of_results }}
</div>
</div>
{% for result in results %}
{% if result['template'] %}
{% include 'result_templates/'+result['template'] %}