UX: bold all the entries in the screened IP list that are more than a single IP

This commit is contained in:
Régis Hanol 2014-11-24 11:26:29 +01:00
parent 23a97bffbe
commit 7611eb4e78
2 changed files with 11 additions and 1 deletions

View File

@ -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');

View File

@ -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">