discourse/app/assets/javascripts/admin/templates/search-logs-index.hbs

Failed to ignore revisions in .git-blame-ignore-revs.

39 lines
1.3 KiB
Handlebars
Raw Normal View History

2018-07-03 11:14:53 +08:00
<div class="admin-title">
{{period-chooser period=period onChange=(action (mut period))}}
{{combo-box
content=searchTypeOptions
value=searchType
class="search-logs-filter"
onChange=(action (mut searchType))
}}
2018-07-03 11:14:53 +08:00
</div>
2017-11-15 08:13:50 +08:00
{{#conditional-loading-spinner condition=loading}}
{{#if model.length}}
<table class="search-logs-list grid">
2018-07-03 11:14:53 +08:00
<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>
2018-07-03 11:14:53 +08:00
</thead>
<tbody>
{{#each model as |item|}}
<tr class="admin-list-item">
<td class="col term">
{{#link-to "adminSearchLogs.term" (query-params term=item.term period=period) class="test"}}
{{item.term}}
{{/link-to}}
</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}}
2018-07-03 11:14:53 +08:00
</tbody>
</table>
2017-11-15 08:13:50 +08:00
{{else}}
{{i18n "search.no_results"}}
2017-11-15 08:13:50 +08:00
{{/if}}
{{/conditional-loading-spinner}}