search pass two

This commit is contained in:
Matthew Scragg 2014-11-11 17:06:28 -06:00
parent 312c61ef61
commit 13d4be8937
7 changed files with 63 additions and 11 deletions

View file

@ -1,4 +1,17 @@
{% extends 'layout.html' %}
{% block body %}
{% if results %}
<div class="list-group">
{% for r in results %}
<a href="{{ url_for('wiki.page', name=r['name']) }}" class="list-group-item">
<h4 class="list-group-item-heading">{{ r['name'] }}</h4>
<p class="list-group-item-text">
{{ r['content'][:100] }}
</p>
</a>
{% endfor %}
</div>
{% else %}
No Results Found
{% endif %}
{% endblock %}