help text in sidebar
[phinde.git] / data / templates / search / sidebar.htm
index eaddaeb9ad5fea76bb132aca0bc4c9fcccf45483..9247f36889d97ba42a0a6dab8114383160af3bfb 100644 (file)
@@ -1,7 +1,29 @@
-<p>
- Filter results by:
+{% 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>
-{% 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'} %}
+
+{% if sidebarinclude %}
+  {% include sidebarinclude %}
+{% endif %}