mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 17:03:44 +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
63 lines
2.1 KiB
Handlebars
63 lines
2.1 KiB
Handlebars
<p>
|
|
{{i18n "admin.logs.screened_emails.description"}}
|
|
</p>
|
|
|
|
<DButton
|
|
@action={{this.exportScreenedEmailList}}
|
|
@title="admin.export_csv.button_title.screened_email"
|
|
@icon="download"
|
|
@label="admin.export_csv.button_text"
|
|
class="btn-default screened-email-export"
|
|
/>
|
|
|
|
<br />
|
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
{{#if this.model.length}}
|
|
|
|
<table class="screened-emails grid">
|
|
<thead>
|
|
<th class="first email">{{i18n "admin.logs.screened_emails.email"}}</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>
|
|
<th class="ip_address">{{i18n "admin.logs.ip_address"}}</th>
|
|
<th class="action"></th>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |item|}}
|
|
<tr class="admin-list-item">
|
|
<td class="col first email">
|
|
<div
|
|
class="overflow-ellipsis"
|
|
title={{item.email}}
|
|
>{{item.email}}</div>
|
|
</td>
|
|
<td class="action">{{item.actionName}}</td>
|
|
<td class="match_count"><div class="label">{{i18n
|
|
"admin.logs.match_count"
|
|
}}</div>{{item.match_count}}</td>
|
|
<td class="last_match_at"><div class="label">{{i18n
|
|
"admin.logs.last_match_at"
|
|
}}</div>{{age-with-tooltip item.last_match_at}}</td>
|
|
<td class="created_at"><div class="label">{{i18n
|
|
"admin.logs.created_at"
|
|
}}</div>{{age-with-tooltip item.created_at}}</td>
|
|
<td class="ip_address">{{item.ip_address}}</td>
|
|
<td class="action">
|
|
<DButton
|
|
@action={{fn this.clearBlock item}}
|
|
@icon="check"
|
|
@label="admin.logs.screened_emails.actions.allow"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
|
|
{{else}}
|
|
{{i18n "search.no_results"}}
|
|
{{/if}}
|
|
</ConditionalLoadingSpinner> |