diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/search/sidebar.htm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index 8665706..9e36312 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -1,10 +1,15 @@ -<p> - Filter results by: -</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'} %} +{% 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}}. |
