From 898cfe2ed364b1aa75f8146fc8c601b414956f42 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 24 May 2025 21:15:38 +0500 Subject: [PATCH] dashboard stats --- .../baseTemplate/custom-js/system-status.js | 4 +++ .../templates/baseTemplate/homePage.html | 36 +++++++++++++++---- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/baseTemplate/static/baseTemplate/custom-js/system-status.js b/baseTemplate/static/baseTemplate/custom-js/system-status.js index 3c5c14120..562976b76 100644 --- a/baseTemplate/static/baseTemplate/custom-js/system-status.js +++ b/baseTemplate/static/baseTemplate/custom-js/system-status.js @@ -872,6 +872,8 @@ app.controller('dashboardStatsController', function ($scope, $http, $timeout) { // Card values $scope.totalSites = 0; $scope.totalWPSites = 0; + $scope.totalDBs = 0; + $scope.totalEmails = 0; // Chart.js chart objects var trafficChart, diskIOChart, cpuChart; @@ -890,6 +892,8 @@ app.controller('dashboardStatsController', function ($scope, $http, $timeout) { if (response.data.status === 1) { $scope.totalSites = response.data.total_sites; $scope.totalWPSites = response.data.total_wp_sites; + $scope.totalDBs = response.data.total_dbs; + $scope.totalEmails = response.data.total_emails; } }); } diff --git a/baseTemplate/templates/baseTemplate/homePage.html b/baseTemplate/templates/baseTemplate/homePage.html index f5a101127..7144b82a2 100755 --- a/baseTemplate/templates/baseTemplate/homePage.html +++ b/baseTemplate/templates/baseTemplate/homePage.html @@ -37,22 +37,44 @@ +
+
+
+
+
+
{$ totalDBs $}
+
Total Databases
+
+
+
+
+
+
+
+
+
+
{$ totalEmails $}
+
Total Emails
+
+
+
+
-
-