summaryrefslogtreecommitdiff
path: root/templates/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/search.html')
-rw-r--r--templates/search.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/search.html b/templates/search.html
new file mode 100644
index 0000000..e6bfe07
--- /dev/null
+++ b/templates/search.html
@@ -0,0 +1,30 @@
+<html>
+ <head>
+ <title>{{ objects.__len__() + skip}} matches</title>
+ </head>
+ <body>
+ {% if objects.__len__() == 0 %}
+ No Matches
+ {% else %}
+ {% for obj in objects %}
+ <hr />
+ <h2> {{ obj['title'] }} </h2>
+ <pre> {{ obj['path'] }} </pre>
+ {% autoescape false %}
+ <div>{{ obj['excerpt'] }}</div>
+ {% endautoescape %}
+ <hr />
+ {% endfor %}
+ {% endif %}
+
+ <div>
+ {% 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>
+ </div>
+ </body>
+</html>