{{i18n "admin.logs.screened_ips.description"}}

{{text-field value=filter class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.filter" autocorrect="off" autocapitalize="off"}} {{d-button class="btn-default" action=(action "rollUp") title="admin.logs.screened_ips.roll_up.title" label="admin.logs.screened_ips.roll_up.text"}} {{d-button class="btn-default" action=(action "exportScreenedIpList") icon="download" title="admin.export_csv.button_title.screened_ip" label="admin.export_csv.button_text"}}
{{screened-ip-address-form action=(action "recordAdded")}}
{{#conditional-loading-spinner condition=loading}} {{#if model.length}} {{#each model as |item|}} {{/each}}
{{i18n "admin.logs.ip_address"}} {{i18n "admin.logs.action"}} {{i18n "admin.logs.match_count"}} {{i18n "admin.logs.created_at"}} {{i18n "admin.logs.last_match_at"}}
{{#if item.editing}} {{text-field value=item.ip_address autofocus="autofocus"}} {{else}} {{#if item.isRange}} {{item.ip_address}} {{else}} {{item.ip_address}} {{/if}} {{/if}} {{#if item.isBlocked}} {{d-icon "ban"}} {{else}} {{d-icon "check"}} {{/if}} {{item.actionName}}
{{i18n "admin.logs.match_count"}}
{{item.match_count}}
{{i18n "admin.logs.created_at"}}
{{age-with-tooltip item.created_at}}
{{#if item.last_match_at}}
{{i18n "admin.logs.last_match_at"}} {{age-with-tooltip item.last_match_at}}
{{/if}}
{{#unless item.editing}} {{d-button class="btn-default btn-danger" action=(action "destroy") actionParam=item icon="far-trash-alt"}} {{d-button class="btn-default" action=(action "edit") actionParam=item icon="pencil-alt"}} {{#if item.isBlocked}} {{d-button class="btn-default" action=(action "allow") actionParam=item icon="check" label="admin.logs.screened_ips.actions.do_nothing"}} {{else}} {{d-button class="btn-default" action=(action "block") actionParam=item icon="ban" label="admin.logs.screened_ips.actions.block"}} {{/if}} {{else}} {{d-button class="btn-default" action=(action "save") actionParam=item label="admin.logs.save"}} {{i18n "cancel"}} {{/unless}}
{{else}} {{i18n "search.no_results"}} {{/if}} {{/conditional-loading-spinner}}