Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created January 10, 2011 17:50
Show Gist options
  • Save gmoeck/773134 to your computer and use it in GitHub Desktop.
Save gmoeck/773134 to your computer and use it in GitHub Desktop.
countSummary: function() {
var length = this.get('length');
if(length == 0) return 'No Tasks';
return length == 1 ? '1 Task' : "%@ Tasks".fmt(length);
}.property('length').cacheable(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment