mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
Version check gets how many versions behind you are, and shows judgemental faces on the dashboard
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user