From 5b7f0bdf98e4fffca943e408a60f2fe2e289fef6 Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 22 Nov 2010 00:03:26 +0100 Subject: save progress --- templates/search.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/search.html b/templates/search.html index 8e0a206..4afe479 100644 --- a/templates/search.html +++ b/templates/search.html @@ -8,5 +8,20 @@ {% endblock %} {% block searchValue %}{{ term }}{% endblock %} {% block content %} -content + {% if matches %} + {# Result rendering #} + Matched {{ matches.__len__() }} Book{% if matches.__len__() > 1 %}s{% endif %} + {% for docnum, matches in matches.items() %} +
+ book: {{ docnum }} + + {% for match in matches %} +
+ {{ match }} +
+ {% endfor %} +
+ match in {{ docnum }} + {% endfor %} + {% endif %} {% endblock %} -- cgit v1.2.1