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