{{i18n 'admin.logs.screened_ips.description'}}
{{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'}} | {{#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}} | {{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 action="destroy" actionParam=item icon="trash-o" class="btn-danger"}} {{d-button action="edit" actionParam=item icon="pencil"}} {{#if item.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}} |