mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Mark Devices in Maintenance Mode (#11092)
* Mark Devices in Maintenance Mode * code climate fix
This commit is contained in:
@ -32,6 +32,7 @@ use LibreNMS\Config;
|
||||
use LibreNMS\Util\Rewrite;
|
||||
use LibreNMS\Util\Url;
|
||||
use LibreNMS\Util\Time;
|
||||
use LibreNMS\Alert\AlertUtil;
|
||||
|
||||
class DeviceController extends TableController
|
||||
{
|
||||
@ -127,6 +128,7 @@ class DeviceController extends TableController
|
||||
return [
|
||||
'extra' => $this->getLabel($device),
|
||||
'status' => $this->getStatus($device),
|
||||
'maintenance' => AlertUtil::isMaintenance($device->device_id),
|
||||
'icon' => '<img src="' . asset($device->icon) . '" title="' . pathinfo($device->icon, PATHINFO_FILENAME) . '">',
|
||||
'hostname' => $this->getHostname($device),
|
||||
'metrics' => $this->getMetrics($device),
|
||||
|
Reference in New Issue
Block a user