mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
27 lines
592 B
JavaScript
27 lines
592 B
JavaScript
(function(cloudStack, testData) {
|
|
// Admin dashboard
|
|
cloudStack.sections.dashboard = {
|
|
title: 'Dashboard',
|
|
show: function() {
|
|
var $dashboard = $('#template').find('div.dashboard.admin').clone();
|
|
|
|
$dashboard.find('.view-all').click(function() {
|
|
$('#navigation li.events').click();
|
|
});
|
|
|
|
return $dashboard;
|
|
}
|
|
};
|
|
|
|
// User dashboard
|
|
/*
|
|
cloudStack.sections['dashboard-user'] = {
|
|
title: 'Dashboard (user)',
|
|
show: function() {
|
|
return $('#template').find('div.dashboard.user').clone();
|
|
}
|
|
};
|
|
*/
|
|
|
|
})(cloudStack, testData);
|