mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
33 lines
897 B
JavaScript
33 lines
897 B
JavaScript
(function() {
|
|
|
|
/**
|
|
The default view in the admin section
|
|
|
|
@class AdminDashboardView
|
|
@extends Em.View
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminDashboardView = Discourse.View.extend({
|
|
templateName: 'admin/templates/dashboard',
|
|
|
|
updateIconClasses: function() {
|
|
var classes;
|
|
classes = "icon icon-warning-sign ";
|
|
if (this.get('controller.versionCheck.critical_updates')) {
|
|
classes += "critical-updates-available";
|
|
} else {
|
|
classes += "updates-available";
|
|
}
|
|
return classes;
|
|
}.property('controller.versionCheck.critical_updates'),
|
|
|
|
priorityClass: function() {
|
|
if (this.get('controller.versionCheck.critical_updates')) {
|
|
return 'version-check critical';
|
|
}
|
|
return 'version-check normal';
|
|
}.property('controller.versionCheck.critical_updates')
|
|
});
|
|
|
|
}).call(this);
|