Use commit timestamps for ElasticSearch and sort on last commit time.
[phorkie.git] / data / templates / search.htm
1 {% extends "base.htm" %}
2 {% block title %}Search results{% endblock %}
3
4 {% block meta %}
5 <meta name="robots" content="noindex"/>
6 {% endblock %}
7
8 {% block content %}
9 {% if sres.results == 0 %}
10  <p>
11   Sorry, no results for "<tt>{{query}}</tt>".
12  </p>
13 {% else %}
14  <p>
15   Found {{sres.results}} search results for "<tt>{{query}}</tt>":
16  </p>
17  <ul class="nav nav-pills nav-stacked">
18  {% for repo in sres.repos %}
19    {% include 'repo-list.htm' %}
20  {% endfor %}
21  </ul>
22  {% include 'pager.htm' %}
23 {% endif %}
24
25 {% endblock %}
26
27 {% block sidebar %}
28  <h3>Search tips</h3>
29  <dl>
30   <dt>Exclusion</dt>
31    <dd><tt>+foo -bar</tt></dd>
32   <dt>Logical OR</dt>
33    <dd><tt>foo OR bar</tt></dd>
34   <dt>Quoting</dt>
35    <dd><tt>"foo bar"</tt></dd>
36   <dt>Partial words</dt>
37    <dd><tt>foo*</tt></dd>
38   <dt>Particular fields only</dt>
39    <dd><tt>description:foo</tt></dd>
40    <dd><tt>name:foo.txt</tt></dd>
41    <dd><tt>extension:rst</tt></dd>
42    <dd><tt>content:Hello</tt></dd>
43  </dl>
44 {% endblock %}