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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.5 KiB
Handlebars
Raw Normal View History

2018-07-02 23:14:53 -04:00
<div class="admin-title">
2022-12-28 07:28:11 -05: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)}}
/>
2018-07-02 23:14:53 -04:00
</div>
2017-11-14 19:13:50 -05:00
<ConditionalLoadingSpinner @condition={{this.loading}}>
{{#if this.model.length}}
2017-11-14 19:13:50 -05:00
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>
2022-12-28 07:28:11 -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>
{{#each this.model as |item|}}
2018-07-02 23:14:53 -04:00
<tr class="admin-list-item">
<td class="col term">
2022-12-28 07:28:11 -05:00
<LinkTo
@route="adminSearchLogs.term"
@query={{hash term=item.term period=this.period}}
class="test"
>
{{item.term}}
</LinkTo>
2018-07-02 23:14:53 -04:00
</td>
2022-12-28 07:28:11 -05:00
<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>
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}}
2022-12-28 07:28:11 -05:00
</ConditionalLoadingSpinner>