X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/e5c7780adb59e8038a040a1e534a4cee1fac8cd8..161c1102795805ee665a727e185fb71e58c92110:/data/templates/search/sidebar.htm diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index eaddaeb..9247f36 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -1,7 +1,29 @@ -

- Filter results by: +{% 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}}.

-{% 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 %}