diff --git a/www/app/models/block.js b/www/app/models/block.js index 64b5c54..d4d17b0 100644 --- a/www/app/models/block.js +++ b/www/app/models/block.js @@ -31,6 +31,10 @@ var Block = Ember.Object.extend({ return this.get('variance') <= 1.0; }), + isHard: Ember.computed('variance', function() { + return this.get('variance') >= 1.2; + }), + isOk: Ember.computed('orphan', 'uncle', function() { return !this.get('orphan'); }), diff --git a/www/app/templates/blocks/block.hbs b/www/app/templates/blocks/block.hbs index ac1925a..c336d28 100644 --- a/www/app/templates/blocks/block.hbs +++ b/www/app/templates/blocks/block.hbs @@ -20,7 +20,11 @@ {{#if block.isLucky}} {{format-number block.variance style='percent'}} {{else}} - {{format-number block.variance style='percent'}} + {{#if block.isHard}} + {{format-number block.variance style='percent'}} + {{else}} + {{format-number block.variance style='percent'}} + {{/if}} {{/if}}