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,
savedIpAddress: null,
isRange: function() {
return this.get("ip_address").indexOf("/") > 0;
}.property("ip_address"),
actions: {
allow: function(record) {
record.set('action_name', 'do_nothing');

View File

@ -2,7 +2,13 @@
{{#if editing}}
{{text-field value=ip_address autofocus="autofocus"}}
{{else}}
<span {{action "edit" this}}>{{ip_address}}</span>
<span {{action "edit" this}}>
{{#if isRange}}
<strong>{{ip_address}}</strong>
{{else}}
{{ip_address}}
{{/if}}
</span>
{{/if}}
</div>
<div class="col action">