From af15f2c4a192dea02aab9e519defc68c71763ec4 Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 22 Nov 2010 14:34:55 +0100 Subject: jquery ui --- templates/_base.html | 9 +++++--- templates/search.html | 60 +++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 52 insertions(+), 17 deletions(-) (limited to 'templates') diff --git a/templates/_base.html b/templates/_base.html index b5826b2..92d1c16 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -1,9 +1,11 @@ - - + {% block head %} - + + + + {% block title %}{% endblock %} - booksearch + {% block javascript %}{% endblock %} {% endblock %} diff --git a/templates/search.html b/templates/search.html index 81a1007..8b7a561 100644 --- a/templates/search.html +++ b/templates/search.html @@ -7,26 +7,58 @@ {% endif %} {% endblock %} {% block searchValue %}{{ term }}{% endblock %} +{% block javascript %} + +{% endblock %} {% block content %} {% if matches %} - {# Result rendering #} Matched {{ matches.__len__() }} Book{% if matches.__len__() > 1 %}s{% endif %} {% for docnum, matches in matches.items() %} +

book: {{ docnum }}

- book: {{ docnum }} - -
- {% for match in matches %} -
- Match at page {{ match[2] }} ( - image, - pdf) - score={{ match[0] }} - excerpt -
- {% endfor %} + +
+
+
+
+ {% for match in matches %} +

+ Match at page {{ match[2] }} +

+
+ + + +
+
+ {% endfor %} +
+
+
-
{% endfor %} {% endif %} {% endblock %} -- cgit v1.2.1