mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Widget Eventlog Sensors Link and Mouseover functionality (#11380)
* Global Settings - Alert Default Settings * Revert "Global Settings - Alert Default Settings" This reverts commita1af62b146. * Widget Eventlog - Sensors link and overlib Image * travis fix * handling via AppServiceProvider * collect function * Travis ... * static list of Sensor Types * adding all sensor graph_types * remove collect * correct getTypes - remove change to lower case * class sensor_descr switch * class sensor_descr switch - revert * Use standard sensor type names * move types to attribute list * going back to changes from9eee7fad58Co-authored-by: Tony Murray <[email protected]>
This commit is contained in:
co-authored by
GitHub
Tony Murray
parent
bb9ebb4e45
commit
cc2894c0df
@@ -89,6 +89,13 @@ class EventlogController extends TableController
|
||||
return '<b>' . Url::portLink($port, $port->getShortLabel()) . '</b>';
|
||||
}
|
||||
}
|
||||
} elseif (in_array($eventlog->type, \App\Models\Sensor::getTypes())) {
|
||||
if (is_numeric($eventlog->reference)) {
|
||||
$sensor = $eventlog->related;
|
||||
if (isset($sensor)) {
|
||||
return '<b>' . Url::sensorLink($sensor, $sensor->sensor_descr) . '</b>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $eventlog->type;
|
||||
|
||||
Reference in New Issue
Block a user