mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 14:15:40 +08:00
371bbadb92
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
34 lines
1.3 KiB
Handlebars
34 lines
1.3 KiB
Handlebars
<div class="admin-title">
|
|
<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)}} />
|
|
</div>
|
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
{{#if this.model.length}}
|
|
|
|
<table class="search-logs-list grid">
|
|
<thead>
|
|
<th class="col heading term">{{i18n "admin.logs.search_logs.term"}}</th>
|
|
<th class="col heading">{{i18n "admin.logs.search_logs.searches"}}</th>
|
|
<th class="col heading">{{i18n "admin.logs.search_logs.click_through_rate"}}</th>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |item|}}
|
|
<tr class="admin-list-item">
|
|
<td class="col term">
|
|
<LinkTo @route="adminSearchLogs.term" @query={{hash term=item.term period=this.period}} class="test">
|
|
{{item.term}}
|
|
</LinkTo>
|
|
</td>
|
|
<td class="col"><div class="label">{{i18n "admin.logs.search_logs.searches"}}</div>{{item.searches}}</td>
|
|
<td class="col"><div class="label">{{i18n "admin.logs.search_logs.click_through_rate"}}</div>{{item.ctr}}%</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
|
|
{{else}}
|
|
{{i18n "search.no_results"}}
|
|
{{/if}}
|
|
</ConditionalLoadingSpinner>
|