From 7e628bc3fdf0aabe9f5aeba4d2dacc3a720681e7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 1 Mar 2018 19:23:46 -0800 Subject: [PATCH] add showing groups under Monitor Name on console --- web/skins/classic/views/console.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index 846404b60..3afc05820 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -183,6 +183,7 @@ xhtmlHeaders( __FILE__, translate('Console') ); - ' : '>') . $monitor['Name'] ?>
+ + ' : '>') . $monitor['Name'] ?>
+
+ ', + array_map(function($group_id){ + $Group = new Group($group_id); + return implode(' > ', array_map(function($Group){ return $Group->Name(); }, $Group->Parents())); + }, $Monitor->GroupIds() ) ); +?> + '.translate('Fn'.$monitor['Function']).( empty($monitor['Enabled']) ? ', disabled' : '' ) .'', canEdit( 'Monitors' ) ) ?>