mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add os type/version/features and hardware to device tooltips (maybe make a function to build this text later)
git-svn-id: http://www.observium.org/svn/observer/trunk@1462 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -53,6 +53,15 @@ function generatedevicelink($device, $text=0, $start=0, $end=0)
|
||||
|
||||
$url = $config['base_url']."/device/" . $device['device_id'] . "/";
|
||||
$contents = "<div class=list-large>".$device['hostname'] . " - $descr</div>";
|
||||
|
||||
$contents .= "<div>";
|
||||
if($device['os']) { $contents .= $config['os'][$device['os']]['text']; }
|
||||
if($device['version']) { $contents .= " ".$device['version']; }
|
||||
if($device['features']) { $contents .= " (".$device['features'].")"; }
|
||||
if($device['hardware']) { $contents .= " - ".$device['hardware']; }
|
||||
$contents .= "</div>";
|
||||
|
||||
|
||||
if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."<br />"; }
|
||||
foreach ($graphs as $graph)
|
||||
{
|
||||
|
Reference in New Issue
Block a user