676 
      677             print("</tr>")
      678 
      679             print("<tr><th>" .. i18n("ip_address") .. "</th><td colspan=1>" .. host["ip"])
      680             if (host.childSafe == true) then
      681                 print(getSafeChildIcon())
      682             end
      683 
      684             if (host.os ~= 0) then
      685                 print(" " .. discover.getOsIcon(host.os) .. " ")
      686             end
      687 
      688             if (host["local_network_name"] ~= nil) then
      689                 local network_name = getLocalNetworkAlias(host["local_network_name"])
      690 
      691                 if ((network_name == nil) or (network_name == "") or (network_name == host["local_network_name"])) then
      692                     network_name = ""
      693                 else
      694                     network_name = " (" .. network_name .. ")"
      695                 end
      696 
      697                 print(" [&nbsp;<A HREF='" .. ntop.getHttpPrefix() .. "/lua/network_details.lua?network=" ..
      698                           host["local_network_id"] .. "&page=historical'>" .. host["local_network_name"] .. "</A> " ..
      699                           network_name .. " &nbsp;]")
      700             end
      701 
      702             if ((host["city"] ~= nil) and (host["city"] ~= "")) then
      703                 print(" [ " .. host["city"] .. " " .. getFlag(host["country"]) .. " ]")
      704             end
      705 
      706             print [[</td><td><span>]]
      707             print(i18n(ternary(have_nedge, "nedge.user", "details.host_pool")) .. ": ")
      708             print [[<a href="]]
      709             print(ntop.getHttpPrefix())
      710             print [[/lua/hosts_stats.lua?pool=]]
      711             print(host_pool_id)
      712             print [[">]]
      713             print(host_pools_instance:get_pool_name(host_pool_id))
      714             print [[</a></span>]]
      715             print [[&nbsp;]]
      716             print(hostinfo2detailshref(host, {
      717                 page = "config"
      718             }, '<i class="fas fa-cog" aria-hidden="true"></i>'))
      719             print("</td></tr>")
      720         else
      721             if (host["mac"] ~= nil) then
      722                 print("<tr><th>" .. i18n("mac_address") .. "</th><td colspan=2>" .. host["mac"] .. "</td></tr>\n")
      723             end
      724         end
      725 
      726         if host["vlan"] and host["vlan"] > 0 then
      727             print("<tr><th>")
      728             print(i18n("details.vlan_id"))
      729             print(
      730                 "</th><td colspan=2><A HREF=" .. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?vlan=" .. host["vlan"] ..
      731                     ">" .. getFullVlanName(host["vlan"]) .. "</A></td></tr>\n")
      732         end
      733 
      734         if (host["os"] ~= "" and host["os"] ~= 0) then
      735             print("<tr>")
      736             if (host["os"] ~= "") then
      737                 local os_detail = ""
      738                 if not isEmptyString(host["os_detail"]) then
      739                     os_detail = os_detail .. " [ " .. host["os_detail"] .. " ]"
      740                 end
      741                 print("<th>" .. i18n("os") .. "</th><td> <A HREF='" .. ntop.getHttpPrefix() ..
      742                           "/lua/hosts_stats.lua?os=" .. host["os"] .. "'>" .. discover.getOsAndIcon(host["os"]) ..
      743                           "</A>" .. os_detail .. "</td><td></td>\n")
      744             else
      745                 print("<th></th><td></td>\n")
      746             end
      747             print("</tr>")
      748         end
      749 
      750         if ((host["asn"] ~= nil) and (host["asn"] > 0)) then
      751             print("<tr><th>" .. i18n("asn") .. "</th><td>")
      752 
      753