mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: links on devices graphs page to take users straight to specific graph page (#5001)
* fix: Correct links to devices graphs #4928 * remove commented out link
This commit is contained in:
committed by
Tony Murray
parent
807ca16fad
commit
25d67c6d79
@@ -228,7 +228,12 @@ if ($format == "graph") {
|
||||
$graph_array_zoom['width'] = '400';
|
||||
$graph_array_zoom['legend'] = 'yes';
|
||||
|
||||
$overlib_link = "device/device=" . $device['device_id'] . "/";
|
||||
$link_array = $graph_array;
|
||||
$link_array['page'] = 'graphs';
|
||||
$link_array['type'] = $graph_type;
|
||||
$link_array['device'] = $device['device_id'];
|
||||
unset($link_array['height'], $link_array['width']);
|
||||
$overlib_link = generate_url($link_array);
|
||||
|
||||
echo '<div class="devices-overlib-box" style="min-width:' . ($width + 90) . '; max-width: ' . ($width + 90) . '">';
|
||||
echo '<div class="panel panel-default">';
|
||||
|
Reference in New Issue
Block a user