| MAC | 
      [% IF params.show_vendor %]
      Vendor | 
      [% END %]
      Match | 
      Device or Node | 
      [% IF params.stamps %]
      First Seen | 
      Last Seen | 
      [% END %]
    
  
  
    [% WHILE (row = macs.next) %]
    
      | 
          [% row.net_mac.$mac_format_call | html_entity %] | 
      [% IF params.show_vendor %]
      [% row.oui.company | html_entity %] | 
      [% END %]
      IP → MAC | 
      [% row.ip | html_entity %]
        [% '  ' IF NOT row.active %]
        [% ' (' _ row.dns.remove(settings.domain_suffix) _ ')' IF row.dns %]
       | 
      [% IF params.stamps %]
      [% row.time_first_stamp | html_entity %] | 
      [% row.time_last_stamp | html_entity %] | 
      [% END %]
    
    [% FOREACH node IN row.node_sightings(archive_filter) %]
    
      |   | 
      [% IF params.show_vendor %]
        | 
      [% END %]
      Switch Port | 
      
          [% node.switch | html_entity %] - [% node.port | html_entity %]
        [% '  ' IF NOT node.active %]
        [% IF node.device.dns AND node.device_port AND node.device_port.name %]
          ([% node.device.dns | html_entity %] - [% node.device_port.name | html_entity %])
        [% END %]
       | 
      [% IF params.stamps %]
      [% node.time_first_stamp | html_entity %] | 
      [% node.time_last_stamp | html_entity %] | 
      [% END %]
    
    [% END %]
    [% FOREACH nodeip IN row.ip_aliases(archive_filter) %]
    
      |   | 
      [% IF params.show_vendor %]
        | 
      [% END %]
      MAC → IP | 
      [% nodeip.ip | html_entity %]
        [% '  ' IF NOT nodeip.active %]
        [% ' (' _ nodeip.dns.remove(settings.domain_suffix) _ ')' IF nodeip.dns %]
       | 
      [% IF params.stamps %]
      [% nodeip.time_first_stamp | html_entity %] | 
      [% nodeip.time_last_stamp | html_entity %] | 
      [% END %]
    
    [% END %]
    [% END %]