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

34 lines
1.2 KiB
Handlebars
Raw Normal View History

2017-11-15 08:13:50 +08:00
<p>
{{period-chooser period=period}}
{{combo-box content=searchTypeOptions value=searchType class='search-logs-filter'}}
2017-11-15 08:13:50 +08:00
</p>
<br>
{{#conditional-loading-spinner condition=loading}}
{{#if model.length}}
<div class='table search-logs-list'>
<div class="heading-container">
<div class="col heading term">{{i18n 'admin.logs.search_logs.term'}}</div>
<div class="col heading">{{i18n 'admin.logs.search_logs.searches'}}</div>
<div class="col heading">{{i18n 'admin.logs.search_logs.click_through'}}</div>
<div class="col heading" title="{{i18n 'admin.logs.search_logs.unique_title'}}">{{i18n 'admin.logs.search_logs.unique'}}</div>
2017-11-15 08:13:50 +08:00
</div>
{{#each model as |item|}}
<div class="admin-list-item">
<div class="col term">
{{#link-to 'adminSearchLogs.term' item.term}}{{item.term}}{{/link-to}}
</div>
2017-11-15 08:13:50 +08:00
<div class="col">{{item.searches}}</div>
<div class="col">{{item.click_through}}</div>
<div class="col">{{item.unique}}</div>
</div>
{{/each}}
</div>
{{else}}
{{i18n 'search.no_results'}}
{{/if}}
{{/conditional-loading-spinner}}