summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/search.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/templates/search.html b/templates/search.html
index e6bfe07..0c5f3d6 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -1,14 +1,33 @@
<html>
<head>
<title>{{ objects.__len__() + skip}} matches</title>
+<script>
+function start() {
+var inputField = document.getElementById("search");
+window.location = "/search/" + inputField.value;
+}
+</script>
</head>
<body>
+<div>
+<input id="search" type="text"/>
+<button onclick="start()">Go</button>
+</div>
{% if objects.__len__() == 0 %}
No Matches
{% else %}
{% for obj in objects %}
<hr />
- <h2> {{ obj['title'] }} </h2>
+ <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>