Parent: [462c18] (diff)

Child: [8dc6aa] (diff)

Download this file

search.html    29 lines (24 with data), 834 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends g.theme.master %}
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Search{% endblock %}
{% block header %}ForgeChat Search{% endblock %}
{% block content %}
<form method="GET" action="search" class="grid-19">
<input type="text" name="q" value="{{q}}"/><br/>
Search history? <input type="checkbox" name="history" {% if history %}checked="checked"{% endif %}/><br/>
<input type="submit" value="Search"/>
</form>
{% if count==0 and q %}
<p>No results.</p>
{% elif count==1 and q %}
<p>{{count}} result.</p>
{% elif count > 1 and q %}
<p>{{count}} results.</p>
{% endif %}
{% for doc in results %}
<div class="grid-19">
<a href="{{doc['url_s']}}">{{doc.title_s}}</a><br/>
<pre>{{doc|pprint}}</pre>
<hr/>
</div>
{% endfor %}
{% endblock %}