From cc80a271ba5b2b11a2c92883fbf5734fd3420aca Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 24 Nov 2010 17:30:53 +0100 Subject: =?UTF-8?q?sch=C3=B6neres=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/search.html | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'templates/search.html') diff --git a/templates/search.html b/templates/search.html index b99c053..490cf75 100644 --- a/templates/search.html +++ b/templates/search.html @@ -34,10 +34,20 @@ {% endblock %} {% block content %} - {% if matches %} - Matched {{ matches.__len__() }} Book{% if matches.__len__() > 1 %}s{% endif %} - {% for docnum, matches in matches.items() %} -

book: {{ docnum }}

+ {% if books %} + Matched {{ books.__len__() }} Book{% if books.__len__() > 1 %}s{% endif %} + {% for docnum, book in books.items() %} +

+ {{ book['filename'] }} + {% if book['title'] %} + ( + {{ book['title'] }} + ) + {% endif %} + + ↸ + +

@@ -47,7 +57,7 @@
- {% for match in matches %} + {% for match in book['matches'] %}

Match at page {{ match[2] }}

@@ -57,7 +67,7 @@
-- cgit v1.2.1