diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs index 17f9c137a5..6b4210a084 100644 --- a/app/assets/javascripts/discourse/templates/full-page-search.hbs +++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs @@ -59,105 +59,109 @@ {{/if}} - {{plugin-outlet name="full-page-search-below-search-info" args=(hash search=searchTerm)}} + {{plugin-outlet name="full-page-search-below-search-info" args=(hash search=searchTerm)}} -
- {{#load-more selector=".fps-result" action=(action "loadMore")}} - {{#each model.posts as |result|}} -
- - -
-
- {{#if bulkSelectEnabled}} - {{track-selected selectedList=selected selectedId=result.topic}} - {{/if}} - - - {{topic-status topic=result.topic disableActions=true}}{{#highlight-text highlight=q}}{{{unbound result.topic.fancyTitle}}}{{/highlight-text}} + {{#unless searching}} +
+ {{#load-more selector=".fps-result" action=(action "loadMore")}} + {{#each model.posts as |result|}} +
+ -
- {{#if result.topic.category.parentCategory}} - {{category-link result.topic.category.parentCategory}} +
+
+ {{#if bulkSelectEnabled}} + {{track-selected selectedList=selected selectedId=result.topic}} {{/if}} - {{category-link result.topic.category hideParent=true}} - {{#each result.topic.tags as |tag|}} - {{discourse-tag tag isPrivateMessage=isPrivateMessage}} - {{/each}} - {{plugin-outlet name="full-page-search-category" args=(hash result=result)}} + + + {{topic-status topic=result.topic disableActions=true}}{{#highlight-text highlight=q}}{{{unbound result.topic.fancyTitle}}}{{/highlight-text}} + + +
+ {{#if result.topic.category.parentCategory}} + {{category-link result.topic.category.parentCategory}} + {{/if}} + {{category-link result.topic.category hideParent=true}} + {{#each result.topic.tags as |tag|}} + {{discourse-tag tag isPrivateMessage=isPrivateMessage}} + {{/each}} + {{plugin-outlet name="full-page-search-category" args=(hash result=result)}} +
-
-
- - {{format-age result.created_at}} - {{#if result.blurb}} - - - {{/if}} - - - {{#if result.blurb}} - {{#highlight-text highlight=highlightQuery}} - {{{unbound result.blurb}}} - {{/highlight-text}} - {{/if}} -
- - {{#if showLikeCount}} - {{#if result.like_count}} -
- {{/each}} - {{#conditional-loading-spinner condition=loading }} - {{#unless hasResults}} - {{#if searchActive}} -

{{i18n "search.no_results"}}

- - {{#if showSuggestion}} -
- {{i18n "search.cant_find"}} - {{#if canCreateTopic}} - {{i18n "search.start_new_topic"}} - {{#unless siteSettings.login_required}} - {{i18n "search.or_search_google"}} - {{/unless}} - {{else}} - {{i18n "search.search_google"}} + {{#if result.blurb}} + {{#highlight-text highlight=highlightQuery}} + {{{unbound result.blurb}}} + {{/highlight-text}} {{/if}}
- {{google-search searchTerm=searchTerm}} - {{/if}} - {{/if}} - {{/unless}} - - {{#if hasResults}} - {{#unless loading}} - +
+
+ {{/each}} + + {{#conditional-loading-spinner condition=loading }} + {{#unless hasResults}} + {{#if searchActive}} +

{{i18n "search.no_results"}}

+ + {{#if showSuggestion}} +
+ {{i18n "search.cant_find"}} + {{#if canCreateTopic}} + {{i18n "search.start_new_topic"}} + {{#unless siteSettings.login_required}} + {{i18n "search.or_search_google"}} + {{/unless}} + {{else}} + {{i18n "search.search_google"}} + {{/if}} +
+ + {{google-search searchTerm=searchTerm}} + {{/if}} + {{/if}} {{/unless}} - {{/if}} - {{/conditional-loading-spinner}} - {{/load-more}} -
+ + {{#if hasResults}} + {{#unless loading}} + + {{/unless}} + {{/if}} + {{/conditional-loading-spinner}} + {{/load-more}} +
+ {{else}} + {{loading-spinner size="medium"}} + {{/unless}}