|
a |
|
b/Allura/allura/templates/widgets/search_results.html |
|
|
1 |
<form method="GET" action=".">
|
|
|
2 |
<div class="grid-19">
|
|
|
3 |
<input type="text" name="q" value="{{q}}" class="defaultText" title="Search App"/>
|
|
|
4 |
</div>
|
|
|
5 |
<div class="grid-19">
|
|
|
6 |
<input type="submit" value="Search App">
|
|
|
7 |
<input type="submit" name="project" value="Search Entire Project">
|
|
|
8 |
</div>
|
|
|
9 |
<div class="grid-19">
|
|
|
10 |
Search history? <input type="checkbox" name="history"{% if history %} checked="checked"{% endif %}/>
|
|
|
11 |
</div>
|
|
|
12 |
</form>
|
|
|
13 |
<div style="clear:both"> </div>
|
|
|
14 |
<div class="grid-19">
|
|
|
15 |
{{widget.fields['page_list'].display(limit=limit, page=page, count=count)}}
|
|
|
16 |
</div>
|
|
|
17 |
{% for doc in results %}
|
|
|
18 |
<div class="grid-19">
|
|
|
19 |
<a href="{{doc['url_s']}}">{{doc.title_s}}</a><br>
|
|
|
20 |
{% if doc.get('snippet') %}
|
|
|
21 |
<p>{{doc.snippet}}</p>
|
|
|
22 |
{% endif %}
|
|
|
23 |
</div>
|
|
|
24 |
<hr>
|
|
|
25 |
{% endfor %}
|
|
|
26 |
<div class="grid-19" style="clear:both">
|
|
|
27 |
{{widget.fields['page_list'].display(limit=limit, page=page, count=count)}}
|
|
|
28 |
{{widget.fields['page_size'].display(limit=limit, count=count)}}
|
|
|
29 |
</div> |