node links to other devices

This commit is contained in:
Oliver Gorwits
2017-12-31 00:11:29 +00:00
parent 187e1ea803
commit 809f1ede76
2 changed files with 8 additions and 2 deletions

View File

@@ -191,11 +191,17 @@ ajax '/ajax/data/device/netmap' => require_login sub {
SIZEVALUE => (param('dynamicsize') ?
(($device->get_column('log') || 1) * 1000) : 3000),
(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')
? (($name eq $device->ip) ? $name : ($name .' '. $device->ip)) : $name),
ORIG_LABEL => $name,
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}) {

View File

@@ -75,7 +75,7 @@
<tbody>
[% FOREACH row IN network %]
<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>
<td>
[% IF row.location %]