diff --git a/Netdisco/share/views/ajax/device/ports.tt b/Netdisco/share/views/ajax/device/ports.tt
index f567c9fc..109f416a 100644
--- a/Netdisco/share/views/ajax/device/ports.tt
+++ b/Netdisco/share/views/ajax/device/ports.tt
@@ -242,12 +242,12 @@
[% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %]
- - [% row.remote_port | html_entity %]
+ [% ' - ' IF row.remote_port %][% 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 %]
+ [% ELSIF row.remote_ip %]
[% IF row.remote_type AND row.remote_type.match('(?i)ip.phone') %]
@@ -255,7 +255,8 @@
[% END %]
- [% row.remote_ip | html_entity %] - [% row.remote_port | html_entity %]
+ [% row.remote_ip | html_entity %]
+ [% ' - ' IF row.remote_port %][% 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 %])