mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
rename cbgp_prefixes to prefixes, as this will be used for more than cisco-bgp-mib now, and link directly to the bgp tab from the general bgp overview when you click on the device. overloaded generate_device_link, the day/time attributes were never used in any page yet
git-svn-id: http://www.observium.org/svn/observer/trunk@1740 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
function generate_device_link($device, $text=0, $start=0, $end=0)
|
||||
function generate_device_link($device, $text=0, $linksuffix="", $start=0, $end=0)
|
||||
{
|
||||
global $twoday; global $day; global $now; global $config;
|
||||
if (!$start) { $start = $day; }
|
||||
@ -21,7 +21,7 @@ function generate_device_link($device, $text=0, $start=0, $end=0)
|
||||
$graphs = $config['os']['default']['over'];
|
||||
}
|
||||
|
||||
$url = $config['base_url']."/device/" . $device['device_id'] . "/";
|
||||
$url = $config['base_url']."/device/" . $device['device_id'] . "/" . $linksuffix;
|
||||
$contents = "<div class=list-large>".$device['hostname'];
|
||||
if($device['hardware']) { $contents .= " - ".$device['hardware']; }
|
||||
$contents .= "</div>";
|
||||
@ -34,7 +34,6 @@ function generate_device_link($device, $text=0, $start=0, $end=0)
|
||||
# if($device['hardware']) { $contents .= " - ".$device['hardware']; }
|
||||
$contents .= "</div>";
|
||||
|
||||
|
||||
# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."<br />"; }
|
||||
foreach ($graphs as $entry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user