X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/9728ce82bfda5cada1fb19a921dbf6c34b76d8d6..f2b3557f358efc5b6363b1f8e4b0c30e93945feb:/data/templates/search/sidebar.htm diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index 8665706..a48b6e8 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -1,10 +1,24 @@ -

- Filter results by: -

-{% 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 hitcount > 1 %} + Sort by: +
+ Relevance + Date +
+
+
+{% 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 %} +

+ Filter results by: +

+ {{filters}} +{% endif %}

Query took {{queryTime}}.