{{period-chooser period=period onChange=(action (mut period))}} {{combo-box content=searchTypeOptions value=searchType class="search-logs-filter" onChange=(action (mut searchType)) }}

{{#link-to 'full-page-search' (query-params q=term)}}{{term}}{{/link-to}}

{{#conditional-loading-spinner condition=refreshing}} {{admin-graph model=model type="bar"}}

{{i18n "admin.logs.search_logs.header_search_results"}}


{{#each model.search_result.posts as |result|}}
{{topic-status topic=result.topic disableActions=true}}{{#highlight-text highlight=term}}{{html-safe 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}} {{/each}}
{{format-age result.created_at}} {{#if result.blurb}} - {{/if}} {{#if result.blurb}} {{#highlight-text highlight=term}} {{html-safe result.blurb}} {{/highlight-text}} {{/if}}
{{/each}}
{{/conditional-loading-spinner}}