{{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 action="rollUp" title="admin.logs.screened_ips.roll_up.title" label="admin.logs.screened_ips.roll_up.text"}} {{d-button action="exportScreenedIpList" icon="download" title="admin.export_csv.button_title.screened_ip" label="admin.export_csv.button_text"}}
{{screened-ip-address-form action="recordAdded"}}
{{#conditional-loading-spinner condition=loading}} {{#if model.length}}
{{i18n 'admin.logs.ip_address'}}
{{i18n 'admin.logs.action'}}
{{i18n 'admin.logs.match_count'}}
{{i18n 'admin.logs.last_match_at'}}
{{i18n 'admin.logs.created_at'}}
{{#each model as |item|}}
{{#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}}
{{item.match_count}}
{{#if item.last_match_at}} {{age-with-tooltip item.last_match_at}} {{/if}}
{{age-with-tooltip item.created_at}}
{{#unless item.editing}} {{d-button action="destroy" actionParam=item icon="trash-o" class="btn-danger"}} {{d-button action="edit" actionParam=item icon="pencil"}} {{#if isBlocked}} {{d-button action="allow" actionParam=item icon="check" label="admin.logs.screened_ips.actions.do_nothing"}} {{else}} {{d-button action="block" actionParam=item icon="ban" label="admin.logs.screened_ips.actions.block"}} {{/if}} {{else}} {{d-button action="save" actionParam=item label="admin.logs.save"}} {{i18n 'cancel'}} {{/unless}}
{{/each}}
{{else}} {{i18n 'search.no_results'}} {{/if}} {{/conditional-loading-spinner}}