mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
UX: bold all the entries in the screened IP list that are more than a single IP
This commit is contained in:
parent
23a97bffbe
commit
7611eb4e78
|
@ -2,6 +2,10 @@ export default Ember.ObjectController.extend({
|
||||||
editing: false,
|
editing: false,
|
||||||
savedIpAddress: null,
|
savedIpAddress: null,
|
||||||
|
|
||||||
|
isRange: function() {
|
||||||
|
return this.get("ip_address").indexOf("/") > 0;
|
||||||
|
}.property("ip_address"),
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
allow: function(record) {
|
allow: function(record) {
|
||||||
record.set('action_name', 'do_nothing');
|
record.set('action_name', 'do_nothing');
|
||||||
|
|
|
@ -2,7 +2,13 @@
|
||||||
{{#if editing}}
|
{{#if editing}}
|
||||||
{{text-field value=ip_address autofocus="autofocus"}}
|
{{text-field value=ip_address autofocus="autofocus"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<span {{action "edit" this}}>{{ip_address}}</span>
|
<span {{action "edit" this}}>
|
||||||
|
{{#if isRange}}
|
||||||
|
<strong>{{ip_address}}</strong>
|
||||||
|
{{else}}
|
||||||
|
{{ip_address}}
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col action">
|
<div class="col action">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user