From 4c6f08757dcadf1a3031246476bfd084b88d7780 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 18 Jun 2014 12:44:35 +0100 Subject: [PATCH] Neighbor device links to both device and port (fragfutter) --- Netdisco/Changes | 1 + Netdisco/share/views/ajax/device/ports.tt | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index 3fb4a258..ee04a30b 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -5,6 +5,7 @@ * Ignore devices with "phone" in their CDP/LLDP platform description * Change log format to contain UTC timestamp * Link to VLAN search by name from VLAN Inventory report + * Neighbor device links to both device and port (fragfutter) [BUG FIXES] diff --git a/Netdisco/share/views/ajax/device/ports.tt b/Netdisco/share/views/ajax/device/ports.tt index 059be403..dfd7b898 100644 --- a/Netdisco/share/views/ajax/device/ports.tt +++ b/Netdisco/share/views/ajax/device/ports.tt @@ -19,7 +19,7 @@ [% END %] - + [% FOREACH row IN results %] @@ -248,10 +248,14 @@ [% ELSIF row.remote_type AND row.remote_type.match('(cisco\s+AIR-[L|C]?AP|-K9W8-|^AP:\s)') %]   [% END %] - - [% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %] - [% ' - ' IF row.remote_port %][% row.remote_port | html_entity %]
+ + [% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %] + [% IF row.remote_port %] + - + + [% row.remote_port | html_entity %] + [% END %] +
[% IF params.neigh_id and (row.remote_id or row.remote_type) %] ([% 'id: '_ row.remote_id IF row.remote_id %] [% ' type: '_ row.remote_type IF row.remote_type %])