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:
Adam Amstrong
2010-07-23 13:40:31 +00:00
parent 589a32fe94
commit 97111b96e0

View File

@ -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)
{