diff --git a/app/controllers/crate/index.js b/app/controllers/crate/index.js index 4ac2272875a..bbad81c2f86 100644 --- a/app/controllers/crate/index.js +++ b/app/controllers/crate/index.js @@ -36,6 +36,10 @@ export default Ember.ObjectController.extend({ this.get('repository'); }.property('homepage', 'wiki', 'mailing_list', 'documentation', 'repository'), + versionsCount: function() { + return this.get('versions.length'); + }.property('versions.@each'), + displayedAuthors: function() { var self = this; if (!this.get('currentVersion')) { diff --git a/app/templates/crate/index.hbs b/app/templates/crate/index.hbs index c53659ff98d..1848cc4fc62 100644 --- a/app/templates/crate/index.hbs +++ b/app/templates/crate/index.hbs @@ -200,7 +200,7 @@
- {{ versions.length }} + {{ versionsCount }} Versions published