From f78911646cf53e37c47921f9dcd9702d6e946f54 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 20 Nov 2010 18:20:32 +0100 Subject: ergebnisliste unbefriedigend --- templates/search.html | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'templates') diff --git a/templates/search.html b/templates/search.html index 5f68355..e2773ae 100644 --- a/templates/search.html +++ b/templates/search.html @@ -8,26 +8,27 @@ {% endblock %} {% block searchValue %}{{ term }}{% endblock %} {% block content %} - {% if objects.__len__() == 0 %} + {% if match_groups.__len__() == 0 %} No Matches {% else %} - {% for obj in objects %} + {{ resultlen }} Matches in {{ match_groups.__len__() }} files + {% for match_group in match_groups %}

- {{ obj['title'] }} - - This Page - - - - - File - + {{ match_group['title'] }} - {{ match_group['filename'] }} + ( + Download + )

-
 {{ obj['path'] }} 
- {% autoescape false %} -
{{ obj['excerpt'] }}
- {% endautoescape %} -
+ {% for match in match_group['matches'] %} +

+ Page {{ match['pagenumber'] }} + (Download) +

+ {% autoescape false %} +
{{ match['excerpt'] }}
+ {% endautoescape %} + {% endfor %} {% endfor %} {% endif %} -- cgit v1.2.1