diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-21 13:00:01 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-21 13:00:01 +0100 |
commit | 1c34f8b6824b38c5a2698bbbd27a7aa7df51da9c (patch) | |
tree | 51a8a3f3278862fbe8cb3932d74a2941aae1bf84 /templates/search.html | |
parent | 7385d9f5ba2cba49db24ee9c874f08fff641cb20 (diff) | |
download | booksearch-1c34f8b6824b38c5a2698bbbd27a7aa7df51da9c.tar.gz booksearch-1c34f8b6824b38c5a2698bbbd27a7aa7df51da9c.zip |
save
Diffstat (limited to 'templates/search.html')
-rw-r--r-- | templates/search.html | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/templates/search.html b/templates/search.html index e2773ae..8e0a206 100644 --- a/templates/search.html +++ b/templates/search.html @@ -8,39 +8,5 @@ {% endblock %} {% block searchValue %}{{ term }}{% endblock %} {% block content %} - {% if match_groups.__len__() == 0 %} - No Matches - {% else %} - {{ resultlen }} Matches in {{ match_groups.__len__() }} files - {% for match_group in match_groups %} - <hr /> - <h2> - {{ match_group['title'] }} - {{ match_group['filename'] }} - (<a href="{{ url_for("do_download_file", docnum=match_group['first_docnum']) }}"> - Download - </a>) - </h2> - {% for match in match_group['matches'] %} - <h3> - Page {{ match['pagenumber'] }} - (<a href="{{ url_for("do_download_page", docnum=match_group['first_docnum'], page=match['pagenumber']) }}">Download</a>) - </h3> - {% autoescape false %} - <div>{{ match['excerpt'] }}</div> - {% endautoescape %} - {% endfor %} - {% endfor %} - {% endif %} - - <div id="navigation"> - {% if term != "" %} - {% if skip > 0 %} - <a href="{{ url_for("do_search", term=term, skip=skip-5) }}">Previous 5</a> - {% else %} - Previous 5 - {% endif %} - - - <a href="{{ url_for("do_search", term=term, skip=skip+5) }}">Next 5</a> - {% endif %} - </div> +content {% endblock %} |