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:
Tom Laermans
2010-11-24 14:25:03 +00:00
parent 79b4e6f114
commit d411f28c33
4 changed files with 7 additions and 8 deletions

View File

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