mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Changed label agent version for agents with satellite os
This commit is contained in:
parent
2ee4f9d88f
commit
c652f758f4
@ -302,7 +302,11 @@ switch ($opt) {
|
|||||||
$osversion_offset = 0;
|
$osversion_offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$row[] = ui_print_os_icon($agent['id_os'], true, true).' (<i><span title="'.$agent['os_version'].'">'.substr($agent['os_version'], $osversion_offset, 15).'</span></i>)';
|
if ($agent['os_version'] != '') {
|
||||||
|
$agent_os_version = ' (<i><span title="'.$agent['os_version'].'">'.substr($agent['os_version'], $osversion_offset, 15).'</span></i>)';
|
||||||
|
}
|
||||||
|
|
||||||
|
$row[] = ui_print_os_icon($agent['id_os'], true, true).$agent_os_version;
|
||||||
$table->data[] = $row;
|
$table->data[] = $row;
|
||||||
|
|
||||||
// URL
|
// URL
|
||||||
@ -331,7 +335,12 @@ switch ($opt) {
|
|||||||
|
|
||||||
// Agent version
|
// Agent version
|
||||||
$row = [];
|
$row = [];
|
||||||
$row[] = __('Agent Version');
|
if (strtolower(get_os_name($agent['id_os'])) == 'satellite') {
|
||||||
|
$row[] = __('Satellite Version');
|
||||||
|
} else {
|
||||||
|
$row[] = __('Agent Version');
|
||||||
|
}
|
||||||
|
|
||||||
$row[] = $agent['agent_version'];
|
$row[] = $agent['agent_version'];
|
||||||
$table->data[] = $row;
|
$table->data[] = $row;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user