From 3741a6a5870c8b60f58124209818c4e1b0decdd7 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Thu, 3 Apr 2025 16:12:28 +0500 Subject: [PATCH] improved wp display --- .../websiteFunctions/websiteFunctions.js | 14 +--- .../websiteFunctions/listWebsites.html | 65 +++---------------- 2 files changed, 13 insertions(+), 66 deletions(-) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 3894ae5fe..1447bb10c 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -2640,12 +2640,9 @@ app.controller('listWebsites', function ($scope, $http) { $scope.currentPage = 1; $scope.recordsToShow = 10; - $scope.toggleWPSites = function(index) { - if (!$scope.WebSitesList[index].showWPSites) { - $scope.WebSitesList[index].showWPSites = true; - } else { - $scope.WebSitesList[index].showWPSites = false; - } + $scope.showWPSites = function(index) { + // Toggle the showWPSites flag for the clicked website + $scope.WebSitesList[index].showWPSites = !$scope.WebSitesList[index].showWPSites; }; $scope.getFurtherWebsitesFromDB = function () { @@ -2846,11 +2843,6 @@ app.controller('listWebsites', function ($scope, $http) { }; - $scope.showWPSites = function(index) { - $scope.selectedWebsite = $scope.WebSitesList[index]; - $('#wpSitesModal').modal('show'); - }; - }); app.controller('listChildDomainsMain', function ($scope, $http, $timeout) { diff --git a/websiteFunctions/templates/websiteFunctions/listWebsites.html b/websiteFunctions/templates/websiteFunctions/listWebsites.html index a0b554138..8809a28f3 100755 --- a/websiteFunctions/templates/websiteFunctions/listWebsites.html +++ b/websiteFunctions/templates/websiteFunctions/listWebsites.html @@ -78,7 +78,6 @@ style="text-transform: none">{% trans "Issue SSL" %}
-
@@ -111,23 +110,20 @@ -
-

WordPress Sites

-
-
+
+
+

WordPress Sites

+
-
- {$ wp.title $} -
- {$ wp.url $} +
+
{$ wp.title $}
+ {$ wp.url $}
- Version: {$ wp.version $} -
- PHP: {$ wp.phpVersion $} +
Version: {$ wp.version || 'Unknown' $}
+
PHP: {$ wp.phpVersion || 'Unknown' $}
-
+
Manage @@ -137,47 +133,6 @@
- - -

{% trans "Cannot list websites. Error message:" %} {$ errorMessage $}