From ff55be7d7a2c469614afc5e60437c66292e7428e Mon Sep 17 00:00:00 2001 From: Negatifff Date: Wed, 10 Jun 2020 13:38:33 +0300 Subject: [PATCH] Add device groups in overview tab (#11796) * Added Device Groups panel on Overview tab * spaces and commas fix * added color in group name * spaces and commas fix2 * fix3 * fix attempt 4 * change text color to preexisting class * change text color to preexisting class v2 * rename title * capitalize * rename title again * title, title... again --- .../html/dev-groups-overview-data.inc.php | 25 +++++++++++++++++++ includes/html/pages/device/overview.inc.php | 1 + 2 files changed, 26 insertions(+) create mode 100644 includes/html/dev-groups-overview-data.inc.php diff --git a/includes/html/dev-groups-overview-data.inc.php b/includes/html/dev-groups-overview-data.inc.php new file mode 100644 index 0000000000..a5b3686dfd --- /dev/null +++ b/includes/html/dev-groups-overview-data.inc.php @@ -0,0 +1,25 @@ +' . $groups['name'] . ''; +} + +if (!empty($device_groups)) { + echo "
+
+
+
"; + + echo ' Device Group Membership'; + echo '
'; + + echo '
+
' . $device_groups . '
+
'; + + echo "
+
+
+
"; +} diff --git a/includes/html/pages/device/overview.inc.php b/includes/html/pages/device/overview.inc.php index 4bce764365..d5134f7409 100644 --- a/includes/html/pages/device/overview.inc.php +++ b/includes/html/pages/device/overview.inc.php @@ -13,6 +13,7 @@ echo('
'); require 'includes/html/dev-overview-data.inc.php'; +require 'includes/html/dev-groups-overview-data.inc.php'; require 'overview/puppet_agent.inc.php'; require 'overview/tracepath.inc.php';