show probable but undiscovered neighbor is ports display

This commit is contained in:
Oliver Gorwits
2013-05-27 15:01:29 +01:00
parent dd8d461188
commit b995cf6398

View File

@@ -181,12 +181,14 @@
[% IF params.c_nodes OR params.c_neighbors %] [% IF params.c_nodes OR params.c_neighbors %]
<td> <td>
[% IF params.c_neighbors AND row.remote_ip %] [% IF params.c_neighbors AND (row.remote_ip OR row.is_uplink) %]
[% IF row.neighbor %] [% IF row.neighbor %]
<a href="[% uri_for('/device', <a href="[% uri_for('/device',
self_options) %]&q=[% row.neighbor.dns || row.neighbor.ip | uri %]&f=[% row.remote_port | uri %]"> self_options) %]&q=[% row.neighbor.dns || row.neighbor.ip | uri %]&f=[% row.remote_port | uri %]">
[% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %] [% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %]
([% row.remote_port | html_entity %])</a> ([% row.remote_port | html_entity %])</a>
[% ELSIF row.is_uplink %]
<span class="label label-important">N</span> (probable neighbor)
[% ELSE %] [% ELSE %]
<span class="label label-important">N</span> <span class="label label-important">N</span>
<a href="[% search_node %]&q=[% row.remote_ip | uri %]"> <a href="[% search_node %]&q=[% row.remote_ip | uri %]">