2019-04-01 23:55:57 -04:00
|
|
|
<div class="admin-title">
|
2022-07-05 13:41:31 -04:00
|
|
|
<PeriodChooser @period={{this.period}} @onChange={{action (mut this.period)}} />
|
|
|
|
<ComboBox @content={{this.searchTypeOptions}} @value={{this.searchType}} @class="search-logs-filter" @onChange={{action (mut this.searchType)}} />
|
2019-04-01 23:55:57 -04:00
|
|
|
</div>
|
2017-12-19 21:41:31 -05:00
|
|
|
|
|
|
|
<h2>
|
2022-07-05 13:41:31 -04:00
|
|
|
<LinkTo @route="full-page-search" @query={{hash q=this.term}}>{{this.term}}</LinkTo>
|
2017-12-19 21:41:31 -05:00
|
|
|
</h2>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.refreshing}}>
|
|
|
|
<AdminGraph @model={{this.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">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.model.search_result.posts as |result|}}
|
2018-01-16 05:29:22 -05:00
|
|
|
<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>
|
2020-04-13 11:17:20 -04:00
|
|
|
</div>
|
2018-01-16 05:29:22 -05:00
|
|
|
|
|
|
|
<div class="fps-topic">
|
|
|
|
<div class="topic">
|
2020-03-09 10:28:31 -04:00
|
|
|
<a href={{result.url}} class="search-link">
|
2022-06-30 06:30:50 -04:00
|
|
|
<TopicStatus @topic={{result.topic}} @disableActions={{true}} />
|
2020-08-12 04:43:47 -04:00
|
|
|
<span class="topic-title">
|
|
|
|
{{#if result.useTopicTitleHeadline}}
|
|
|
|
{{html-safe result.topicTitleHeadline}}
|
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<HighlightSearch @highlight={{this.q}}>
|
2020-08-12 04:43:47 -04:00
|
|
|
{{html-safe result.topic.fancyTitle}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</HighlightSearch>
|
2020-08-12 04:43:47 -04:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2020-04-13 11:17:20 -04:00
|
|
|
</a>
|
|
|
|
|
2018-01-16 05:29:22 -05: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 11:17:20 -04:00
|
|
|
</div>
|
2018-01-16 05:29:22 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="blurb container">
|
|
|
|
<span class="date">
|
|
|
|
{{format-age result.created_at}}
|
|
|
|
{{#if result.blurb}}
|
2020-04-13 11:17:20 -04:00
|
|
|
-
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
|
2018-01-16 05:29:22 -05:00
|
|
|
{{#if result.blurb}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.siteSettings.use_pg_headlines_for_excerpt}}
|
2020-03-11 04:23:10 -04:00
|
|
|
{{html-safe result.blurb}}
|
2020-08-06 22:49:37 -04:00
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<HighlightSearch @highlight={{this.highlightQuery}}>
|
2020-08-06 22:49:37 -04:00
|
|
|
{{html-safe result.blurb}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</HighlightSearch>
|
2020-08-06 22:49:37 -04:00
|
|
|
{{/if}}
|
2018-01-16 05:29:22 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2022-06-30 06:30:50 -04:00
|
|
|
</ConditionalLoadingSpinner>
|