Download this file

search.html    29 lines (25 with data), 886 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 %}ForgeBlog 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>
<div style="clear: both">&nbsp;</div>
{% 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>
<div class="grid-19"><a href="{{doc['url_s']}}">{{doc.title_s}}</a></div>
<p>{{doc.get('snippet_s', '...')}}</p>
<hr/>
</div>
{% endfor %}
{% endblock %}