Parent: [8d9363] (diff)

Child: [f21149] (diff)

Download this file

search_index.html    39 lines (34 with data), 950 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
29
30
31
32
33
34
35
36
37
38
{% set hide_left_bar = True %}
{% extends g.theme.master %}
{% block title %}{{c.project.name}} / Search{% endblock %}
{% block header %}Search Project: {{q}}{% endblock %}
{% block content %}
<div class="grid-24">
<form method="GET" action="search">
<input type="text" name="q" value="{{q}}" class="title"/><br/>
Search history? <input type="checkbox" name="history" {% if history %}checked{% endif %}/><br/>
&nbsp;<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 %}
<hr/>
</div>
<div class="grid-24">
<ol>
{% for doc in results %}
<li>
<a href="{{doc['url_s']}}">{{doc.title_s}}</a>
{% if doc.get('snippet') %}
<p>{{doc['snippet']|safe}}</p>
{% endif %}
</li>
{% endfor %}
</ol>
</div>
{% endblock %}