diff --git a/Netdisco/share/views/ajax/device/ports.tt b/Netdisco/share/views/ajax/device/ports.tt index 9276a4a1..cf49eb61 100644 --- a/Netdisco/share/views/ajax/device/ports.tt +++ b/Netdisco/share/views/ajax/device/ports.tt @@ -233,13 +233,15 @@ [% IF params.c_neighbors AND (row.remote_ip OR row.is_uplink) %] [% IF row.neighbor %] - - + + [% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %] - ([% row.remote_port | html_entity %] - [% ' id: '_ row.remote_id IF row.remote_id %] - [% ' type: '_ row.remote_type IF row.remote_type %]) + - [% row.remote_port | html_entity %]
+ [% IF params.neigh_id %] + ([% 'id: '_ row.remote_id IF row.remote_id %] + [% ' type: '_ row.remote_type IF row.remote_type %]) + [% END %] [% ELSIF row.remote_ip AND row.remote_port %] [% IF row.remote_type AND row.remote_type.match('(?i)ip.phone') %]   @@ -248,12 +250,14 @@ [% ELSE %]   [% END %] - - [% row.remote_ip | html_entity %] (port: [% row.remote_port | html_entity %] - [% ' id: '_ row.remote_id IF row.remote_id %] - [% ' type: '_ row.remote_type IF row.remote_type %]) + + [% row.remote_ip | html_entity %] - [% row.remote_port | html_entity %]
+ [% IF params.neigh_id %] + ([% 'id: '_ row.remote_id IF row.remote_id %] + [% ' type: '_ row.remote_type IF row.remote_type %]) + [% END %] [% ELSE %] -   (possible uplink) +   (possible uplink) [% END %] [% END %] [% IF params.c_nodes %] diff --git a/Netdisco/share/views/sidebar/device/ports.tt b/Netdisco/share/views/sidebar/device/ports.tt index 4f7b3efa..eb789ae1 100644 --- a/Netdisco/share/views/sidebar/device/ports.tt +++ b/Netdisco/share/views/sidebar/device/ports.tt @@ -105,6 +105,13 @@ +
  • + +