anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

search.html (1695B)


      1 {%- extends "basic/search.html" %}
      2 
      3 {% block body %}
      4   <h1 id="search-documentation">{{ _('Search') }}</h1>
      5   <div id="fallback" class="admonition warning">
      6   <script type="text/javascript">$('#fallback').hide();</script>
      7   <p>
      8     {% trans %}Please activate JavaScript to enable the search
      9     functionality.{% endtrans %}
     10   </p>
     11   </div>
     12   <p>
     13     {% trans %}From here you can search these documents. Enter your search
     14     words into the box below and click "search". Note that the search
     15     function will automatically search for all of the words. Pages
     16     containing fewer words won't appear in the result list.{% endtrans %}
     17   </p>
     18 
     19   <div class="search-page-form">
     20     <form class="form-inline" action="{{ pathto('search') }}" method="GET" role="form">
     21       <div class="input-group">
     22         <input name="q" type="text" class="form-control" />
     23         <span class="input-group-btn">
     24           <button class="btn btn-default" type="button">{{ _('search') }}</button>
     25         </span>
     26       </div>
     27       <span id="search-progress" style="padding-left: 10px"></span>
     28     </form>
     29   </div>
     30 
     31   {% if search_performed %}
     32     <h2>{{ _('Search Results') }}</h2>
     33     {% if not search_results %}
     34       <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>
     35     {% endif %}
     36   {% endif %}
     37   <div id="search-results">
     38   {% if search_results %}
     39     <ul>
     40     {% for href, caption, context in search_results %}
     41       <li><a href="{{ pathto(item.href) }}">{{ caption }}</a>
     42         <div class="context">{{ context|e }}</div>
     43       </li>
     44     {% endfor %}
     45     </ul>
     46   {% endif %}
     47   </div>
     48 {% endblock %}