diff --git a/Netdisco/share/views/ajax/search/node_by_ip.tt b/Netdisco/share/views/ajax/search/node_by_ip.tt index 591c2064..3b495761 100644 --- a/Netdisco/share/views/ajax/search/node_by_ip.tt +++ b/Netdisco/share/views/ajax/search/node_by_ip.tt @@ -4,11 +4,8 @@ MAC - [% IF params.show_vendor %] - Vendor - [% END %] Match - Device or Node + Device or Node [% IF params.stamps %] First Seen Last Seen @@ -19,11 +16,13 @@ [% WHILE (row = macs.next) %] [% IF row.nbname %] - - [% row.net_mac.$mac_format_call | html_entity %] + MAC: + [% row.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - [% row.oui.company | html_entity %] + ( + [% row.oui.company | html_entity %] ) [% END %] + NetBIOS \\[% row.domain | html_entity %]\[% row.nbname | html_entity %]
[% row.nbuser || '[No User]' | html_entity %]@[% row.ip | html_entity %] @@ -35,11 +34,13 @@ [% ELSE %] - - [% row.net_mac.$mac_format_call | html_entity %] + MAC: + [% row.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - [% row.oui.company | html_entity %] + ( + [% row.oui.company | html_entity %] ) [% END %] + IP → MAC [% row.ip | html_entity %] @@ -54,13 +55,13 @@ [% END %] [% FOREACH nbt IN row.netbios %] - - [% nbt.net_mac.$mac_format_call | html_entity %] + MAC: + [% nbt.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% nbt.oui.company | html_entity %] - + ( + [% nbt.oui.company | html_entity %] ) [% END %] + NetBIOS \\[% nbt.domain | html_entity %]\[% nbt.nbname | html_entity %]
[% nbt.nbuser || '[No User]' | html_entity %]@[% nbt.ip | html_entity %] @@ -73,13 +74,13 @@ [% END %] [% FOREACH ni IN row.nodeips %] - - [% ni.net_mac.$mac_format_call | html_entity %] + MAC: + [% ni.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% ni.oui.company | html_entity %] - + ( + [% ni.oui.company | html_entity %] ) [% END %] + IP → MAC [% ni.ip | html_entity %] @@ -94,13 +95,13 @@ [% END %] [% FOREACH node IN row.node_sightings(archive_filter) %] - - [% node.net_mac.$mac_format_call | html_entity %] + MAC: + [% node.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% node.oui.company | html_entity %] - + ( + [% node.oui.company | html_entity %] ) [% END %] + Switch Port @@ -117,13 +118,13 @@ [% FOREACH wlan IN node.wireless %] - - [% wlan.net_mac.$mac_format_call | html_entity %] + MAC: + [% wlan.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% wlan.oui.company | html_entity %] - + ( + [% wlan.oui.company | html_entity %] ) [% END %] + Wireless Info SSID: [% wlan.ssid | html_entity %]
MaxRate: [% wlan.maxrate | html_entity %]Mbps TxRate: [% wlan.txrate | html_entity %]Mbps
@@ -140,13 +141,13 @@ [% END %] [% FOREACH nodeip IN row.ip_aliases(archive_filter) %] - - [% nodeip.net_mac.$mac_format_call | html_entity %] + MAC: + [% nodeip.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% nodeip.oui.company | html_entity %] - + ( + [% nodeip.oui.company | html_entity %] ) [% END %] + MAC → IP [% nodeip.ip | html_entity %] @@ -179,6 +180,9 @@ $(document).ready(function() { "order": [[ 0, 'asc' ]], "stateSave": true, "pageLength": 25, + "language": { + "search": 'Filter records: ' + }, "drawCallback": function ( settings ) { var api = this.api(); var rows = api.rows( {page:'current'} ).nodes(); @@ -187,12 +191,8 @@ $(document).ready(function() { api.column(0, {page:'current'} ).data().each( function ( group, i ) { if ( last !== group ) { $(rows).eq( i ).before( - [% IF params.show_vendor && params.stamps %] - ''+group+'' - [% ELSIF params.stamps %] + [% IF params.stamps %] ''+group+'' - [% ELSIF params.show_vendor %] - ''+group+'' [% ELSE %] ''+group+'' [% END %] diff --git a/Netdisco/share/views/ajax/search/node_by_mac.tt b/Netdisco/share/views/ajax/search/node_by_mac.tt index c5ff8634..198d71b9 100644 --- a/Netdisco/share/views/ajax/search/node_by_mac.tt +++ b/Netdisco/share/views/ajax/search/node_by_mac.tt @@ -3,9 +3,6 @@ MAC - [% IF params.show_vendor %] - Vendor - [% END %] Match Device or Node [% IF params.stamps %] @@ -18,13 +15,13 @@ [% WHILE (row = ips.next) %] - + MAC: [% row.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% row.oui.company | html_entity %] - + ( + [% row.oui.company | html_entity %] ) [% END %] + MAC → IP [% row.ip | html_entity %] [% '  ' IF NOT row.active %] @@ -39,14 +36,13 @@ [% WHILE (node = sightings.next) %] - + MAC: [% node.net_mac.$mac_format_call | html_entity %] - [% IF params.show_vendor %] - - [% node.oui.company | html_entity %] - + ( + [% node.oui.company | html_entity %] ) [% END %] + Switch Port @@ -65,13 +61,12 @@ [% WHILE (port = ports.next) %] - [% port.net_mac.$mac_format_call | html_entity %] - + MAC: [% port.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% port.oui.company | html_entity %] - + ( + [% port.oui.company | html_entity %] ) [% END %] + Switch Port @@ -89,13 +84,12 @@ [% WHILE (nbt = netbios.next) %] - [% nbt.net_mac.$mac_format_call | html_entity %] - + MAC: [% nbt.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% nbt.oui.company | html_entity %] - + ( + [% nbt.oui.company | html_entity %] ) [% END %] + NetBIOS \\[% nbt.domain | html_entity %]\[% nbt.nbname | html_entity %]
[% nbt.nbuser || '[No User]' | html_entity %]@[% nbt.ip | html_entity %] @@ -109,13 +103,12 @@ [% WHILE (wlan = wireless.next) %] - [% wlan.net_mac.$mac_format_call | html_entity %] - + MAC: [% wlan.net_mac.$mac_format_call | html_entity %] [% IF params.show_vendor %] - - [% wlan.oui.company | html_entity %] - + ( + [% wlan.oui.company | html_entity %] ) [% END %] + Wireless Info SSID: [% wlan.ssid | html_entity %]
MaxRate: [% wlan.maxrate | html_entity %]Mbps TxRate: [% wlan.txrate | html_entity %]Mbps
@@ -148,6 +141,9 @@ $(document).ready(function() { "order": [[ 0, 'asc' ]], "stateSave": true, "pageLength": 25, + "language": { + "search": 'Filter records: ' + }, "drawCallback": function ( settings ) { var api = this.api(); var rows = api.rows( {page:'current'} ).nodes(); @@ -156,12 +152,8 @@ $(document).ready(function() { api.column(0, {page:'current'} ).data().each( function ( group, i ) { if ( last !== group ) { $(rows).eq( i ).before( - [% IF params.show_vendor && params.stamps %] - ''+group+'' - [% ELSIF params.stamps %] + [% IF params.stamps %] ''+group+'' - [% ELSIF params.show_vendor %] - ''+group+'' [% ELSE %] ''+group+'' [% END %]