From 86a9854f39b50d83f721de29f5c030aa2bf1260f Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 13 Jan 2014 10:00:13 +0000 Subject: [PATCH] show both link and device type icons --- Netdisco/share/views/ajax/device/ports.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Netdisco/share/views/ajax/device/ports.tt b/Netdisco/share/views/ajax/device/ports.tt index cf49eb61..f567c9fc 100644 --- a/Netdisco/share/views/ajax/device/ports.tt +++ b/Netdisco/share/views/ajax/device/ports.tt @@ -234,6 +234,11 @@ [% IF params.c_neighbors AND (row.remote_ip OR row.is_uplink) %] [% IF row.neighbor %] + [% IF row.remote_type AND row.remote_type.match('(?i)ip.phone') %] +   + [% 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 %] @@ -243,12 +248,11 @@ [% ' 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') %]   [% ELSIF row.remote_type AND row.remote_type.match('(cisco\s+AIR-[L|C]?AP|-K9W8-|^AP:\s)') %]   - [% ELSE %] -   [% END %] [% row.remote_ip | html_entity %] - [% row.remote_port | html_entity %]