mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 23:33:57 +08:00
1c87bb7fe9
1. Use `this.` instead of `{{action}}` where applicable 2. Use `{{fn}}` instead of `@actionParam` where applicable 3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded 4. Remove `btn` class (it's added automatically to all DButtons) 5. Remove `type="button"` (it's the default) 6. Use `concat-class` helper
49 lines
1.7 KiB
Handlebars
49 lines
1.7 KiB
Handlebars
<p>
|
|
{{i18n "admin.logs.screened_urls.description"}}
|
|
</p>
|
|
<DButton
|
|
@action={{this.exportScreenedUrlList}}
|
|
@title="admin.export_csv.button_title.screened_url"
|
|
@icon="download"
|
|
@label="admin.export_csv.button_text"
|
|
class="btn-default"
|
|
/>
|
|
<br />
|
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
{{#if this.model.length}}
|
|
<table class="screened-urls grid">
|
|
<thead>
|
|
<th class="first domain">{{i18n "admin.logs.screened_urls.domain"}}</th>
|
|
<th class="action">{{i18n "admin.logs.action"}}</th>
|
|
<th class="match_count">{{i18n "admin.logs.match_count"}}</th>
|
|
<th class="last_match_at">{{i18n "admin.logs.last_match_at"}}</th>
|
|
<th class="created_at">{{i18n "admin.logs.created_at"}}</th>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |url|}}
|
|
<tr class="admin-list-item">
|
|
<td class="col first domain">
|
|
<div
|
|
class="overflow-ellipsis"
|
|
title={{url.domain}}
|
|
>{{url.domain}}</div>
|
|
</td>
|
|
<td class="col action">{{url.actionName}}</td>
|
|
<td class="col match_count"><div class="label">{{i18n
|
|
"admin.logs.match_count"
|
|
}}</div>{{url.match_count}}</td>
|
|
<td class="col last_match_at"><div class="label">{{i18n
|
|
"admin.logs.last_match_at"
|
|
}}</div>{{age-with-tooltip url.last_match_at}}</td>
|
|
<td class="col created_at"><div class="label">{{i18n
|
|
"admin.logs.created_at"
|
|
}}</div>{{age-with-tooltip url.created_at}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
{{i18n "search.no_results"}}
|
|
{{/if}}
|
|
</ConditionalLoadingSpinner> |