Version check gets how many versions behind you are, and shows judgemental faces on the dashboard

This commit is contained in:
Neil Lalonde
2013-03-05 18:14:51 -05:00
parent 3c1388bbd7
commit f8e04a5c48
7 changed files with 38 additions and 20 deletions

View File

@ -8,8 +8,12 @@
**/
Discourse.VersionCheck = Discourse.Model.extend({
upToDate: function() {
return this.get('latest_version') === this.get('installed_version');
}.property('latest_version', 'installed_version'),
return this.get('missing_versions_count') === 0;
}.property('missing_versions_count'),
behindByOneVersion: function() {
return this.get('missing_versions_count') === 1;
}.property('missing_versions_count'),
gitLink: function() {
return "https://github.com/discourse/discourse/tree/" + this.get('installed_sha');