realms-wiki/realms/templates/search/search.html

19 lines
600 B
HTML
Raw Normal View History

2014-11-10 18:54:46 +02:00
{% extends 'layout.html' %}
{% block body %}
2014-11-12 01:06:28 +02:00
{% if results %}
2014-11-13 06:11:13 +02:00
<h3>Results for <em class="text-info">{{ request.args.get('q') }}</em></h3>
2014-11-12 01:06:28 +02:00
<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 %}
2014-11-13 06:11:13 +02:00
<h3>No results found for <em class="text-info">{{ request.args.get('q') }}</em></h3>
2014-11-12 01:06:28 +02:00
{% endif %}
2014-11-10 18:54:46 +02:00
{% endblock %}