diff --git a/src/sunstone/public/app/tabs/dashboard-tab/user-quotas.hbs b/src/sunstone/public/app/tabs/dashboard-tab/user-quotas.hbs
new file mode 100644
index 0000000000..0e24f91f44
--- /dev/null
+++ b/src/sunstone/public/app/tabs/dashboard-tab/user-quotas.hbs
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/src/sunstone/public/app/tabs/dashboard-tab/users.hbs b/src/sunstone/public/app/tabs/dashboard-tab/users.hbs
new file mode 100644
index 0000000000..4a62b04639
--- /dev/null
+++ b/src/sunstone/public/app/tabs/dashboard-tab/users.hbs
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
{{> ./empty-graph}}
+
+
+
+
{{> ./empty-graph}}
+
+
+
+
\ No newline at end of file
diff --git a/src/sunstone/public/app/tabs/groups-tab/datatable.js b/src/sunstone/public/app/tabs/groups-tab/datatable.js
index 63b040c2ff..87393dc3a6 100644
--- a/src/sunstone/public/app/tabs/groups-tab/datatable.js
+++ b/src/sunstone/public/app/tabs/groups-tab/datatable.js
@@ -59,12 +59,16 @@ define(function(require) {
"you_selected_multiple": Locale.tr("You selected the following groups:")
};
+ this.totalGroups = 0;
+
TabDataTable.call(this);
}
Table.prototype = Object.create(TabDataTable.prototype);
Table.prototype.constructor = Table;
Table.prototype.elementArray = _elementArray;
+ Table.prototype.preUpdateView = _preUpdateView;
+ Table.prototype.postUpdateView = _postUpdateView;
return Table;
@@ -122,4 +126,12 @@ define(function(require) {
cpu
];
}
+
+ function _preUpdateView() {
+ this.totalGroups = 0;
+ }
+
+ function _postUpdateView() {
+ $(".total_groups").text(this.totalGroups);
+ }
});
diff --git a/src/sunstone/public/app/tabs/users-tab/datatable.js b/src/sunstone/public/app/tabs/users-tab/datatable.js
index 3dc3208034..55dad1f5b0 100644
--- a/src/sunstone/public/app/tabs/users-tab/datatable.js
+++ b/src/sunstone/public/app/tabs/users-tab/datatable.js
@@ -63,12 +63,16 @@ define(function(require) {
"you_selected_multiple": Locale.tr("You selected the following users:")
};
+ this.totalUsers = 0;
+
TabDataTable.call(this);
}
Table.prototype = Object.create(TabDataTable.prototype);
Table.prototype.constructor = Table;
Table.prototype.elementArray = _elementArray;
+ Table.prototype.preUpdateView = _preUpdateView;
+ Table.prototype.postUpdateView = _postUpdateView;
return Table;
@@ -77,6 +81,8 @@ define(function(require) {
*/
function _elementArray(element_json) {
+ this.totalUsers++;
+
var element = element_json[XML_ROOT];
var vms = '- ';
@@ -122,4 +128,12 @@ define(function(require) {
hidden_template
];
}
+
+ function _preUpdateView() {
+ this.totalUsers = 0;
+ }
+
+ function _postUpdateView() {
+ $(".total_users").text(this.totalUsers);
+ }
});