node links to other devices
This commit is contained in:
@@ -191,11 +191,17 @@ ajax '/ajax/data/device/netmap' => require_login sub {
|
|||||||
SIZEVALUE => (param('dynamicsize') ?
|
SIZEVALUE => (param('dynamicsize') ?
|
||||||
(($device->get_column('log') || 1) * 1000) : 3000),
|
(($device->get_column('log') || 1) * 1000) : 3000),
|
||||||
(param('colorgroups') ?
|
(param('colorgroups') ?
|
||||||
(COLORVALUE => ($first_hgrp ? setting('host_group_displaynames')->{$first_hgrp} : 'Other')) : ()),
|
(COLORVALUE => ($first_hgrp ? setting('host_group_displaynames')->{$first_hgrp}
|
||||||
|
: 'Other')) : ()),
|
||||||
LABEL => (param('showips')
|
LABEL => (param('showips')
|
||||||
? (($name eq $device->ip) ? $name : ($name .' '. $device->ip)) : $name),
|
? (($name eq $device->ip) ? $name : ($name .' '. $device->ip)) : $name),
|
||||||
ORIG_LABEL => $name,
|
ORIG_LABEL => $name,
|
||||||
INFOSTRING => make_node_infostring($device),
|
INFOSTRING => make_node_infostring($device),
|
||||||
|
LINK => uri_for('/device', {
|
||||||
|
tab => 'netmap',
|
||||||
|
q => $device->ip,
|
||||||
|
firstsearch => 'on',
|
||||||
|
})->path_query,
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($mapshow ne 'neighbors' and exists $pos_for->{$device->ip}) {
|
if ($mapshow ne 'neighbors' and exists $pos_for->{$device->ip}) {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
[% FOREACH row IN network %]
|
[% FOREACH row IN network %]
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="[% uri_for('/device') %]?tab=netmap&q=[% row.ip | uri %]">
|
<td><a href="[% uri_for('/device') %]?tab=netmap&q=[% row.ip | uri %]&firstsearch=on">
|
||||||
[% row.dns || row.name || row.ip | html_entity %]</a></td>
|
[% row.dns || row.name || row.ip | html_entity %]</a></td>
|
||||||
<td>
|
<td>
|
||||||
[% IF row.location %]
|
[% IF row.location %]
|
||||||
|
|||||||
Reference in New Issue
Block a user