{{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 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}} |