|
|
@ -5,31 +5,36 @@ define(
|
|
|
|
'marionette',
|
|
|
|
'marionette',
|
|
|
|
'System/About/AboutView',
|
|
|
|
'System/About/AboutView',
|
|
|
|
'System/Logs/LogsLayout',
|
|
|
|
'System/Logs/LogsLayout',
|
|
|
|
'System/Update/UpdateLayout'
|
|
|
|
'System/Update/UpdateLayout',
|
|
|
|
|
|
|
|
'System/DiskSpace/DiskSpaceLayout'
|
|
|
|
], function (Backbone,
|
|
|
|
], function (Backbone,
|
|
|
|
Marionette,
|
|
|
|
Marionette,
|
|
|
|
AboutView,
|
|
|
|
AboutView,
|
|
|
|
LogsLayout,
|
|
|
|
LogsLayout,
|
|
|
|
UpdateLayout) {
|
|
|
|
UpdateLayout,
|
|
|
|
|
|
|
|
DiskSpaceLayout) {
|
|
|
|
return Marionette.Layout.extend({
|
|
|
|
return Marionette.Layout.extend({
|
|
|
|
template: 'System/SystemLayoutTemplate',
|
|
|
|
template: 'System/SystemLayoutTemplate',
|
|
|
|
|
|
|
|
|
|
|
|
regions: {
|
|
|
|
regions: {
|
|
|
|
about : '#about',
|
|
|
|
about : '#about',
|
|
|
|
logs : '#logs',
|
|
|
|
logs : '#logs',
|
|
|
|
updates : '#updates'
|
|
|
|
updates: '#updates',
|
|
|
|
|
|
|
|
diskSpace: '#diskspace'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
ui: {
|
|
|
|
ui: {
|
|
|
|
aboutTab : '.x-about-tab',
|
|
|
|
aboutTab : '.x-about-tab',
|
|
|
|
logsTab : '.x-logs-tab',
|
|
|
|
logsTab : '.x-logs-tab',
|
|
|
|
updatesTab: '.x-updates-tab'
|
|
|
|
updatesTab: '.x-updates-tab',
|
|
|
|
|
|
|
|
diskSpaceTab: '.x-diskspace-tab'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
|
'click .x-about-tab' : '_showAbout',
|
|
|
|
'click .x-about-tab' : '_showAbout',
|
|
|
|
'click .x-logs-tab' : '_showLogs',
|
|
|
|
'click .x-logs-tab' : '_showLogs',
|
|
|
|
'click .x-updates-tab': '_showUpdates'
|
|
|
|
'click .x-updates-tab': '_showUpdates',
|
|
|
|
|
|
|
|
'click .x-diskspace-tab':'_showDiskSpace'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
initialize: function (options) {
|
|
|
@ -46,6 +51,8 @@ define(
|
|
|
|
case 'updates':
|
|
|
|
case 'updates':
|
|
|
|
this._showUpdates();
|
|
|
|
this._showUpdates();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'diskspace':
|
|
|
|
|
|
|
|
this._showDiskSpace();
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
this._showAbout();
|
|
|
|
this._showAbout();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -83,6 +90,14 @@ define(
|
|
|
|
this.updates.show(new UpdateLayout());
|
|
|
|
this.updates.show(new UpdateLayout());
|
|
|
|
this.ui.updatesTab.tab('show');
|
|
|
|
this.ui.updatesTab.tab('show');
|
|
|
|
this._navigate('system/updates');
|
|
|
|
this._navigate('system/updates');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
_showDiskSpace: function (e) {
|
|
|
|
|
|
|
|
if (e) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.diskSpace.show(new DiskSpaceLayout());
|
|
|
|
|
|
|
|
this.ui.diskSpaceTab.tab('show');
|
|
|
|
|
|
|
|
this._navigate("system/diskspace");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|