{{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-search highlight=term}}{{html-safe result.topic.fancyTitle}}{{/highlight-search}}
{{#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}} {{#if siteSettings.use_pg_headlines_for_excerpt}} {{html-safe result.blurb}} {{else}} {{#highlight-search highlight=highlightQuery}} {{html-safe result.blurb}} {{/highlight-search}} {{/if}} {{/if}}
{{/each}}
{{/conditional-loading-spinner}}