|
|
@ -12,21 +12,21 @@ var StatusModel = require('./StatusModel');
|
|
|
|
module.exports = Marionette.Layout.extend({
|
|
|
|
module.exports = Marionette.Layout.extend({
|
|
|
|
template : 'System/SystemLayoutTemplate',
|
|
|
|
template : 'System/SystemLayoutTemplate',
|
|
|
|
regions : {
|
|
|
|
regions : {
|
|
|
|
info : '#info',
|
|
|
|
status : '#status',
|
|
|
|
logs : '#logs',
|
|
|
|
logs : '#logs',
|
|
|
|
updates : '#updates',
|
|
|
|
updates : '#updates',
|
|
|
|
backup : '#backup',
|
|
|
|
backup : '#backup',
|
|
|
|
tasks : '#tasks'
|
|
|
|
tasks : '#tasks'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ui : {
|
|
|
|
ui : {
|
|
|
|
infoTab : '.x-info-tab',
|
|
|
|
statusTab : '.x-status-tab',
|
|
|
|
logsTab : '.x-logs-tab',
|
|
|
|
logsTab : '.x-logs-tab',
|
|
|
|
updatesTab : '.x-updates-tab',
|
|
|
|
updatesTab : '.x-updates-tab',
|
|
|
|
backupTab : '.x-backup-tab',
|
|
|
|
backupTab : '.x-backup-tab',
|
|
|
|
tasksTab : '.x-tasks-tab'
|
|
|
|
tasksTab : '.x-tasks-tab'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
events : {
|
|
|
|
events : {
|
|
|
|
'click .x-info-tab' : '_showInfo',
|
|
|
|
'click .x-status-tab' : '_showStatus',
|
|
|
|
'click .x-logs-tab' : '_showLogs',
|
|
|
|
'click .x-logs-tab' : '_showLogs',
|
|
|
|
'click .x-updates-tab' : '_showUpdates',
|
|
|
|
'click .x-updates-tab' : '_showUpdates',
|
|
|
|
'click .x-backup-tab' : '_showBackup',
|
|
|
|
'click .x-backup-tab' : '_showBackup',
|
|
|
@ -58,7 +58,7 @@ module.exports = Marionette.Layout.extend({
|
|
|
|
this._showTasks();
|
|
|
|
this._showTasks();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
this._showInfo();
|
|
|
|
this._showStatus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_navigate : function(route){
|
|
|
|
_navigate : function(route){
|
|
|
@ -67,13 +67,14 @@ module.exports = Marionette.Layout.extend({
|
|
|
|
replace : true
|
|
|
|
replace : true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_showInfo : function(e){
|
|
|
|
_showStatus : function (e) {
|
|
|
|
if(e) {
|
|
|
|
if (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.info.show(new SystemInfoLayout());
|
|
|
|
|
|
|
|
this.ui.infoTab.tab('show');
|
|
|
|
this.status.show(new SystemInfoLayout());
|
|
|
|
this._navigate('system/info');
|
|
|
|
this.ui.statusTab.tab('show');
|
|
|
|
|
|
|
|
this._navigate('system/status');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_showLogs : function(e){
|
|
|
|
_showLogs : function(e){
|
|
|
|
if(e) {
|
|
|
|
if(e) {
|
|
|
|