2018-07-02 23:14:53 -04:00
|
|
|
<div class="admin-title">
|
2020-10-06 17:50:05 -04:00
|
|
|
{{period-chooser period=period onChange=(action (mut period))}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{combo-box
|
|
|
|
content=searchTypeOptions
|
|
|
|
value=searchType
|
|
|
|
class="search-logs-filter"
|
2020-10-06 17:50:05 -04:00
|
|
|
onChange=(action (mut searchType))
|
2020-02-03 08:22:14 -05:00
|
|
|
}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
2017-11-14 19:13:50 -05:00
|
|
|
|
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
|
|
|
{{#if model.length}}
|
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
<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>
|
2018-12-18 08:43:46 -05:00
|
|
|
<th class="col heading">{{i18n "admin.logs.search_logs.click_through_rate"}}</th>
|
2018-07-02 23:14:53 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-11-14 19:13:50 -05:00
|
|
|
{{#each model as |item|}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<tr class="admin-list-item">
|
|
|
|
<td class="col term">
|
2019-04-01 23:51:11 -04:00
|
|
|
{{#link-to "adminSearchLogs.term" (query-params term=item.term period=period) class="test"}}
|
2019-03-28 22:39:44 -04:00
|
|
|
{{item.term}}
|
|
|
|
{{/link-to}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</td>
|
|
|
|
<td class="col"><div class="label">{{i18n "admin.logs.search_logs.searches"}}</div>{{item.searches}}</td>
|
2018-12-18 08:43:46 -05:00
|
|
|
<td class="col"><div class="label">{{i18n "admin.logs.search_logs.click_through_rate"}}</div>{{item.ctr}}%</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
</tr>
|
2017-11-14 19:13:50 -05:00
|
|
|
{{/each}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-11-14 19:13:50 -05:00
|
|
|
|
|
|
|
{{else}}
|
|
|
|
{{i18n "search.no_results"}}
|
|
|
|
{{/if}}
|
|
|
|
{{/conditional-loading-spinner}}
|