Debian Codegraph @

sphinxcontrib/websupport/templates/searchresults.html

raw
1 {# Template for the body of the search results page. #}
2 <h1 id="search-documentation">{{ _('Search') }}</h1>
3 <p>
4 From here you can search these documents. Enter your search
5 words into the box below and click "search".
6 </p>
7 <form action="" method="get">
8 <input type="text" name="q" value="" />
9 <input type="submit" value="{{ _('search') }}" />
10 <span id="search-progress" style="padding-left: 10px"></span>
11 </form>
12 {%- if search_performed %}
13 <h2>{{ _('Search Results') }}</h2>
14 {%- if not search_results %}
15 <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>
16 {%- endif %}
17 {%- endif %}
18 <div id="search-results">
19 {%- if search_results %}
20 <ul class="search">
21 {% for href, caption, context in search_results %}
22 <li><a href="{{ docroot }}{{ href }}/?highlight={{ q }}">{{ caption }}</a>
23 <div class="context">{{ context|e }}</div>
24 </li>
25 {% endfor %}
26 </ul>
27 {%- endif %}
28 </div>