From 0ae1e5e802871903d73d6542252aa0a8d08fba39 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 20 Nov 2010 01:16:56 +0100 Subject: web stuff --- templates/search.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 templates/search.html (limited to 'templates/search.html') 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 @@ + + + {{ objects.__len__() + skip}} matches + + + {% if objects.__len__() == 0 %} + No Matches + {% else %} + {% for obj in objects %} +
+

{{ obj['title'] }}

+
 {{ obj['path'] }} 
+ {% autoescape false %} +
{{ obj['excerpt'] }}
+ {% endautoescape %} +
+ {% endfor %} + {% endif %} + +
+ {% if skip > 0 %} + Previous 5 + {% else %} + Previous 5 + {% endif %} + - + Next 5 +
+ + -- cgit v1.2.1