comparison doc/sphinx_bootstrap_theme/bootstrap/searchresults.html @ 10:a50cf11e5178

Rewrite LGDataverse completely upgrading to dataverse4.0
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 08 Sep 2015 17:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
9:5926d6419569 10:a50cf11e5178
1 {#
2 basic/searchresults.html
3 ~~~~~~~~~~~~~~~~~~~~~~~~
4
5 Template for the body of the search results page.
6
7 :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
8 :license: BSD, see LICENSE for details.
9 #}
10 <h1 id="search-documentation">Search</h1>
11 <p>
12 From here you can search these documents. Enter your search
13 words into the box below and click "search".
14 </p>
15
16 <form class="form-search" action="" method="get">
17 <input type="text" name="q" class="input-medium search-query">
18 <button type="submit" class="btn">{{ _('search') }}</button>
19 <span id="search-progress" style="padding-left: 10px"></span>
20 </form>
21
22 {%- if search_performed %}
23 <h2>Search Results</h2>
24 {%- if not search_results %}
25 <p>Your search did not match any results.</p>
26 {%- endif %}
27 {%- endif %}
28 <div id="search-results">
29 {%- if search_results %}
30 <ul class="search">
31 {% for href, caption, context in search_results %}
32 <li><a href="{{ docroot }}{{ href }}/?highlight={{ q }}">{{ caption }}</a>
33 <div class="context">{{ context|e }}</div>
34 </li>
35 {% endfor %}
36 </ul>
37 {%- endif %}
38 </div>