| MAC | 
      [% IF params.vendor %]
      Vendor | 
      [% END %]
      Match | 
      Device or Node | 
      [% IF params.stamps %]
      First Seen | 
      Last Seen | 
      [% END %]
    
  
  
    [% SET first_row = 1 %]
    [% WHILE (row = ips.next) %]
    
      | 
        [% IF first_row %]
        
            [% row.net_mac.$mac_format_call | html_entity %]
        [% ELSE %]
         
        [% END %]
      
      [% IF params.vendor %]
       | 
        [% IF first_row %]
        [% row.oui.company | html_entity %]
        [% ELSE %]
         
        [% END %]
       | 
      [% END %]
      MAC → IP | 
      [% 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 %]
    
    [% SET first_row = 0 %]
    [% END %]
    [% WHILE (node = sightings.next) %]
    
      | 
        [% IF first_row %]
        
            [% node.net_mac.$mac_format_call | html_entity %]
        [% ELSE %]
         
        [% END %]
       | 
      [% IF params.vendor %]
      
        [% IF first_row %]
        [% node.oui.company | html_entity %]
        [% ELSE %]
         
        [% END %]
       | 
      [% 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 %]
    
    [% SET first_row = 0 %]
    [% END %]
    [% WHILE (port = ports.next) %]
    
      | 
        [% IF first_row %]
        [% port.mac | html_entity %]
        [% ELSE %]
         
        [% END %]
       | 
      [% IF params.vendor %]
      
        [% IF first_row %]
        [% port.oui.company | html_entity %]
        [% ELSE %]
         
        [% END %]
       | 
      [% END %]
      Switch Port | 
      
            [% port.ip | html_entity %] - [% port.descr | html_entity %]
        [% IF port.device.dns AND port.name %]
          ([% port.device.dns | html_entity %] - [% port.name | html_entity %])
        [% END %]
       | 
      [% IF params.stamps %]
      [% port.creation | html_entity %] | 
      [% port.creation | html_entity %] | 
      [% END %]
    
    [% SET first_row = 0 %]
    [% END %]