aboutsummaryrefslogtreecommitdiff
path: root/data/templates/search/sidebar.htm
blob: 9247f36889d97ba42a0a6dab8114383160af3bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% if hitcount > 1 %}
 Sort by:
<div class="btn-group">
 <a class="btn{%if sort=="score"%} disabled btn-primary{%endif%}" href="{{urlSorts.score}}">Relevance</a>
 <a class="btn{%if sort=="date"%} disabled btn-primary{%endif%}" href="{{urlSorts.date}}">Date</a>
</div>
<br/>
<br/>
{% endif %}
{% set filters %}
 {% include 'search/sidebar-filter.htm' with {'type': 'tags', 'title': 'Tag'} %}
 {% include 'search/sidebar-filter.htm' with {'type': 'domain', 'title': 'Domain'} %}
 {% include 'search/sidebar-filter.htm' with {'type': 'language', 'title': 'Language'} %}
 {% include 'search/sidebar-filter.htm' with {'type': 'type', 'title': 'Type'} %}
{% endset %}
{% if filters|trim %}
 <p>
  Filter results by:
 </p>
 {{filters}}
{% endif %}

<p class="muted">
 Query took {{queryTime}}.
</p>

{% if sidebarinclude %}
  {% include sidebarinclude %}
{% endif %}