From da8e5fbda351f2c95df051ef8af8456897490b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 10 Apr 2015 16:09:16 +0200 Subject: [PATCH] search template clean-up --- .../discourse/templates/search.hbs | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/search.hbs b/app/assets/javascripts/discourse/templates/search.hbs index dbf7f7c8fad..6ad3c159554 100644 --- a/app/assets/javascripts/discourse/templates/search.hbs +++ b/app/assets/javascripts/discourse/templates/search.hbs @@ -1,35 +1,32 @@ -{{view 'search-text-field' value=term searchContextEnabled=searchContextEnabled searchContext=searchContext id="search-term"}} -
+{{view "search-text-field" value=term searchContextEnabled=searchContextEnabled searchContext=searchContext id="search-term"}} +
{{#if searchContext}} {{/if}} - {{i18n 'show_help'}} + {{i18n "show_help"}}
{{#if loading}} -
{{loading-spinner}}
+
{{loading-spinner}}
{{else}}
- {{#unless noResults}} + {{#if noResults}} +
+ {{i18n "search.no_results"}} +
+ {{else}} {{#each resultType in content.resultTypes}}
    -
  • - {{resultType.name}} -
  • - {{view 'search-results-type' type=resultType.type displayType=resultType.displayType content=resultType.results}} +
  • {{resultType.name}}
  • + {{view "search-results-type" type=resultType.type displayType=resultType.displayType content=resultType.results}}
-
- {{#if resultType.more}} - {{i18n 'show_more'}} - {{else}} - {{/if}} -
+
+ {{#if resultType.more}} + {{i18n "show_more"}} {{fa-icon "chevron-down"}} + {{/if}} +
{{/each}} - {{else}} -
- {{i18n 'search.no_results'}} -
- {{/unless}} + {{/if}}
{{/if}}