2019-04-01 23:55:57 -04:00
|
|
|
<div class="admin-title">
|
2020-02-03 08:22:14 -05:00
|
|
|
{{period-chooser period=period onChange=(action (mut period))}}
|
|
|
|
{{combo-box
|
|
|
|
content=searchTypeOptions
|
|
|
|
value=searchType
|
|
|
|
class="search-logs-filter"
|
|
|
|
onChange=(action (mut searchType))
|
|
|
|
}}
|
2019-04-01 23:55:57 -04:00
|
|
|
</div>
|
2017-12-19 21:41:31 -05:00
|
|
|
|
|
|
|
<h2>
|
|
|
|
{{#link-to 'full-page-search' (query-params q=term)}}{{term}}{{/link-to}}
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{#conditional-loading-spinner condition=refreshing}}
|
2019-03-28 23:54:49 -04:00
|
|
|
{{admin-graph model=model type="bar"}}
|
2018-01-16 05:29:22 -05:00
|
|
|
|
|
|
|
<br><br>
|
|
|
|
<h2> {{i18n "admin.logs.search_logs.header_search_results"}} </h2>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class='header-search-results'>
|
|
|
|
{{#each model.search_result.posts as |result|}}
|
|
|
|
<div class='fps-result'>
|
|
|
|
<div class='author'>
|
2020-03-09 10:28:31 -04:00
|
|
|
<a href={{result.userPath}} data-user-card={{result.username}}>
|
2018-01-16 05:29:22 -05:00
|
|
|
{{avatar result imageSize="large"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='fps-topic'>
|
|
|
|
<div class='topic'>
|
2020-03-09 10:28:31 -04:00
|
|
|
<a class='search-link' href={{result.url}}>
|
2020-03-11 04:23:10 -04:00
|
|
|
{{topic-status topic=result.topic disableActions=true}}<span class='topic-title'>{{#highlight-text highlight=term}}{{html-safe result.topic.fancyTitle}}{{/highlight-text}}</span>
|
2018-01-16 05:29:22 -05:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class='search-category'>
|
|
|
|
{{#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}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='blurb container'>
|
|
|
|
<span class='date'>
|
|
|
|
{{format-age result.created_at}}
|
|
|
|
{{#if result.blurb}}
|
|
|
|
-
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{{#if result.blurb}}
|
|
|
|
{{#highlight-text highlight=term}}
|
2020-03-11 04:23:10 -04:00
|
|
|
{{html-safe result.blurb}}
|
2018-01-16 05:29:22 -05:00
|
|
|
{{/highlight-text}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2017-12-19 21:41:31 -05:00
|
|
|
{{/conditional-loading-spinner}}
|