blob: 5f68355f8cf9a46b73347be3af174b04bab6b5ed (
plain)
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
39
40
41
42
43
44
45
|
{% extends "_base.html" %}
{% block title %}
{% if term != "" %}
{{ term }}
{% else %}
Start a new Search
{% endif %}
{% endblock %}
{% block searchValue %}{{ term }}{% endblock %}
{% block content %}
{% if objects.__len__() == 0 %}
No Matches
{% else %}
{% for obj in objects %}
<hr />
<h2>
{{ obj['title'] }}
<a href="{{ url_for("do_download_page", docnum=obj['docnum']) }}">
This Page
</a>
-
<a href="{{ url_for("do_download_file", docnum=obj['docnum']) }}">
File
</a>
</h2>
<pre> {{ obj['path'] }} </pre>
{% autoescape false %}
<div>{{ obj['excerpt'] }}</div>
{% endautoescape %}
<hr />
{% endfor %}
{% endif %}
<div id="navigation">
{% if term != "" %}
{% if skip > 0 %}
<a href="{{ url_for("do_search", term=term, skip=skip-5) }}">Previous 5</a>
{% else %}
Previous 5
{% endif %}
-
<a href="{{ url_for("do_search", term=term, skip=skip+5) }}">Next 5</a>
{% endif %}
</div>
{% endblock %}
|