mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Create correct link for BGP peers #5958
This commit is contained in:
committed by
Neil Lathwood
parent
a02b987fdf
commit
ead3abb2c2
@@ -208,7 +208,12 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? $extra_sql
|
||||
$graph_array_zoom['height'] = '150';
|
||||
$graph_array_zoom['width'] = '500';
|
||||
$overlib_link = "device/device=".$peer['device_id']."/tab=routing/proto=bgp/";
|
||||
$peeraddresslink = "<span class=list-large>".overlib_link(null, $peer['bgpPeerIdentifier'], generate_graph_tag($graph_array_zoom), null)."</span>";
|
||||
|
||||
$link_array = $graph_array;
|
||||
$link_array['page'] = 'graphs';
|
||||
unset($link_array['height'], $link_array['width'], $link_array['legend']);
|
||||
$link = generate_url($link_array);
|
||||
$peeraddresslink = "<span class=list-large>".overlib_link($link, $peer['bgpPeerIdentifier'], generate_graph_tag($graph_array_zoom), null)."</span>";
|
||||
|
||||
echo '<tr bgcolor="'.$bg_colour.'"'.($peer['alert'] ? ' bordercolor="#cc0000"' : '').($peer['disabled'] ? ' bordercolor="#cccccc"' : '').'>
|
||||
';
|
||||
|
||||
Reference in New Issue
Block a user