Configuration for default sort order
[phinde.git] / data / templates / search / sidebar.htm
1 {% if hitcount > 1 %}
2  Sort by:
3 <div class="btn-group">
4  <a class="btn{%if sort=="score"%} disabled btn-primary{%endif%}" href="{{urlSorts.score}}">Relevance</a>
5  <a class="btn{%if sort=="date"%} disabled btn-primary{%endif%}" href="{{urlSorts.date}}">Date</a>
6 </div>
7 <br/>
8 <br/>
9 {% endif %}
10 {% set filters %}
11  {% include 'search/sidebar-filter.htm' with {'type': 'tags', 'title': 'Tag'} %}
12  {% include 'search/sidebar-filter.htm' with {'type': 'domain', 'title': 'Domain'} %}
13  {% include 'search/sidebar-filter.htm' with {'type': 'language', 'title': 'Language'} %}
14  {% include 'search/sidebar-filter.htm' with {'type': 'type', 'title': 'Type'} %}
15 {% endset %}
16 {% if filters|trim %}
17  <p>
18   Filter results by:
19  </p>
20  {{filters}}
21 {% endif %}
22
23 <p class="muted">
24  Query took {{queryTime}}.
25 </p>