2019-04-02 11:55:57 +08:00
|
|
|
<div class="admin-title">
|
2020-10-07 05:50:05 +08:00
|
|
|
{{period-chooser period=period onChange=(action (mut period))}}
|
2020-02-03 21:22:14 +08:00
|
|
|
{{combo-box
|
|
|
|
content=searchTypeOptions
|
|
|
|
value=searchType
|
|
|
|
class="search-logs-filter"
|
2020-10-07 05:50:05 +08:00
|
|
|
onChange=(action (mut searchType))
|
2020-02-03 21:22:14 +08:00
|
|
|
}}
|
2019-04-02 11:55:57 +08:00
|
|
|
</div>
|
2017-12-20 10:41:31 +08:00
|
|
|
|
|
|
|
<h2>
|
|
|
|
{{#link-to "full-page-search" (query-params q=term)}}{{term}}{{/link-to}}
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{#conditional-loading-spinner condition=refreshing}}
|
2019-03-29 11:54:49 +08:00
|
|
|
{{admin-graph model=model type="bar"}}
|
2018-01-16 18:29:22 +08: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 22:28:31 +08:00
|
|
|
<a href={{result.userPath}} data-user-card={{result.username}}>
|
2018-01-16 18:29:22 +08:00
|
|
|
{{avatar result imageSize="large"}}
|
|
|
|
</a>
|
2020-04-13 23:17:20 +08:00
|
|
|
</div>
|
2018-01-16 18:29:22 +08:00
|
|
|
|
|
|
|
<div class="fps-topic">
|
|
|
|
<div class="topic">
|
2020-03-09 22:28:31 +08:00
|
|
|
<a href={{result.url}} class="search-link">
|
2020-08-12 16:43:47 +08:00
|
|
|
{{topic-status topic=result.topic disableActions=true}}
|
|
|
|
<span class="topic-title">
|
|
|
|
{{#if result.useTopicTitleHeadline}}
|
|
|
|
{{html-safe result.topicTitleHeadline}}
|
|
|
|
{{else}}
|
|
|
|
{{#highlight-search highlight=q}}
|
|
|
|
{{html-safe result.topic.fancyTitle}}
|
|
|
|
{{/highlight-search}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2020-04-13 23:17:20 +08:00
|
|
|
</a>
|
|
|
|
|
2018-01-16 18:29:22 +08:00
|
|
|
<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}}
|
2020-04-13 23:17:20 +08:00
|
|
|
</div>
|
2018-01-16 18:29:22 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="blurb container">
|
|
|
|
<span class="date">
|
|
|
|
{{format-age result.created_at}}
|
|
|
|
{{#if result.blurb}}
|
2020-04-13 23:17:20 +08:00
|
|
|
-
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
|
2018-01-16 18:29:22 +08:00
|
|
|
{{#if result.blurb}}
|
2020-08-07 10:49:37 +08:00
|
|
|
{{#if siteSettings.use_pg_headlines_for_excerpt}}
|
2020-03-11 16:23:10 +08:00
|
|
|
{{html-safe result.blurb}}
|
2020-08-07 10:49:37 +08:00
|
|
|
{{else}}
|
|
|
|
{{#highlight-search highlight=highlightQuery}}
|
|
|
|
{{html-safe result.blurb}}
|
|
|
|
{{/highlight-search}}
|
|
|
|
{{/if}}
|
2018-01-16 18:29:22 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2017-12-20 10:41:31 +08:00
|
|
|
{{/conditional-loading-spinner}}
|