fixes to BGP global page

git-svn-id: http://www.observium.org/svn/observer/trunk@2871 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-02-16 16:43:11 +00:00
parent 06c25fe703
commit 726df0ca5f
3 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ function generate_device_url($device, $vars=array())
return generate_url(array('page' => 'device', 'device' => $device['device_id']), $vars);
}
function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
function generate_device_link($device, $text=NULL, $vars=array(), $start=0, $end=0)
{
global $config;
@@ -92,10 +92,10 @@ function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
if ($device['os']) { $contents .= mres($config['os'][$device['os']]['text']); }
if ($device['version']) { $contents .= " ".mres($device['version']); }
if ($device['features']) { $contents .= " (".mres($device['features']).")"; }
# if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
if (isset($device['location'])) { $contents .= "<br />" . htmlentities($device['location']); }
$contents .= "</div>";
# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."<br />"; }
foreach ($graphs as $entry)
{
$graph = $entry['graph'];

View File

@@ -442,7 +442,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
{ ## FIXME link below broken!
echo('
<li><hr width=140></li>
<li><a href="routing/protocol=bgp/alerts/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
<li><a href="routing/protocol=bgp/state=down/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
');
}