mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: screened IP addresses list wasn't working anymore
This commit is contained in:
@@ -1,35 +1,35 @@
|
|||||||
<div class="col first ip_address">
|
<div class="col first ip_address">
|
||||||
{{#if editing}}
|
{{#if editing}}
|
||||||
{{text-field value=model.ip_address autofocus="autofocus"}}
|
{{text-field value=ip_address autofocus="autofocus"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<span {{action "edit" this}}>
|
<span {{action "edit" this}}>
|
||||||
{{#if isRange}}
|
{{#if isRange}}
|
||||||
<strong>{{model.ip_address}}</strong>
|
<strong>{{ip_address}}</strong>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{model.ip_address}}
|
{{ip_address}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col action">
|
<div class="col action">
|
||||||
{{fa-icon model.actionIcon}}
|
{{fa-icon actionIcon}}
|
||||||
{{model.actionName}}
|
{{actionName}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col match_count">{{model.match_count}}</div>
|
<div class="col match_count">{{match_count}}</div>
|
||||||
<div class="col last_match_at">
|
<div class="col last_match_at">
|
||||||
{{#if model.last_match_at}}
|
{{#if last_match_at}}
|
||||||
{{age-with-tooltip model.last_match_at}}
|
{{age-with-tooltip last_match_at}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col created_at">{{age-with-tooltip model.created_at}}</div>
|
<div class="col created_at">{{age-with-tooltip created_at}}</div>
|
||||||
<div class="col actions">
|
<div class="col actions">
|
||||||
{{#unless editing}}
|
{{#unless editing}}
|
||||||
<button class="btn btn-danger" {{action "destroy" this}}><i class="fa fa-trash-o"></i></button>
|
<button class="btn btn-danger" {{action "destroy" this}}><i class="fa fa-trash-o"></i></button>
|
||||||
<button class="btn" {{action "edit" this}}><i class="fa fa-pencil"></i></button>
|
<button class="btn" {{action "edit" this}}><i class="fa fa-pencil"></i></button>
|
||||||
{{#if model.isBlocked}}
|
{{#if isBlocked}}
|
||||||
<button class="btn" {{action "allow" this}}>{{fa-icon "check"}} {{i18n 'admin.logs.screened_ips.actions.do_nothing'}}</button>
|
<button class="btn" {{action "allow" this}}>{{fa-icon "check"}} {{i18n 'admin.logs.screened_ips.actions.do_nothing'}}</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="btn" {{action "block" this}}>{{fa-icon "ban"}} {{i18n 'admin.logs.screened_ips.actions.block'}}</button>
|
<button class="btn" {{action "block" this}}>{{fa-icon "ban"}} {{i18n 'admin.logs.screened_ips.actions.block'}}</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="btn" {{action "save" this}}>{{i18n 'admin.logs.save'}}</button>
|
<button class="btn" {{action "save" this}}>{{i18n 'admin.logs.save'}}</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user