diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-22 00:03:26 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-22 00:03:26 +0100 |
commit | 5b7f0bdf98e4fffca943e408a60f2fe2e289fef6 (patch) | |
tree | f20af72822aa752223f600c376245a06e67ea6ae /templates/search.html | |
parent | d84019f18c1f928d628c48e087bce41933fc1860 (diff) | |
download | booksearch-5b7f0bdf98e4fffca943e408a60f2fe2e289fef6.tar.gz booksearch-5b7f0bdf98e4fffca943e408a60f2fe2e289fef6.zip |
save progress
Diffstat (limited to 'templates/search.html')
-rw-r--r-- | templates/search.html | 17 |
1 files changed, 16 insertions, 1 deletions
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() %} + <div class="book"> + book: {{ docnum }} + <img src="{{ url_for("do_download_image", docnum=docnum, page=0) }}"/> + {% for match in matches %} + <div class="match"> + {{ match }} + </div> + {% endfor %} + </div> + match in {{ docnum }} + {% endfor %} + {% endif %} {% endblock %} |