summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/search.html17
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 %}