5 Template for the search page.
7 :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
8 :license: BSD, see LICENSE for details.
10 {%- extends "layout.html" %}
11 {% set title = _('Search') %}
12 {% set display_vcs_links = False %}
15 <script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
18 <script type="text/javascript">
19 jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
21 {# this is used when loading the search index using $.ajax fails,
22 such as on Chrome for documents on localhost #}
23 <script type="text/javascript" id="searchindexloader"></script>
28 <div id="fallback" class="admonition warning">
30 {% trans trimmed %}Please activate JavaScript to enable the search
31 functionality.{% endtrans %}
36 {% if search_performed %}
37 {# Translators: Search is a noun, not a verb #}
38 <h2>{{ _('Search Results') }}</h2>
39 {% if not search_results %}
40 <p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p>
43 <div id="search-results">
44 {% if search_results %}
46 {% for href, caption, context in search_results %}
48 <a href="{{ pathto(item.href) }}">{{ caption }}</a>
49 <p class="context">{{ context|e }}</p>