st_scan.epoch)     
     1034             end
     1035             
     1036             print('<tr><th><a href="' .. ntop.getHttpPrefix() ..'/lua/vulnerability_scan.lua?page=show_result&scan_date='..host_vulnerabilities.last_scan.time..'&host='..host_vulnerabilities.host..'&scan_type='..host_vulnerabilities.scan_type..'">'.. i18n("hosts_stats.page_scan_hosts.title_hosts_page") .. '</a></th>')
     1037             print("<td colspan=2>")
     1038             local i = 0
     1039             for _,vs in ipairs(host_vulnerabilities.cve) do
     1040                 if (i<5) then
     1041                     
     1042                     local cve_details = split(vs,"|")
     1043                     local cve_score = tonumber(cve_details[2])
     1044                     local cve_id = cve_details[1]
     1045 
     1046                     local badge_type = "";
     1047                     if (cve_score == 0) then
     1048                         badge_type = "bg-success";
     1049                     elseif(cve_score < 3.9) then
     1050                         badge_type = "bg-secondary";
     1051                     elseif(cve_score < 7) then
     1052                         badge_type = "bg-warning";
     1053                     else
     1054                         badge_type = "bg-danger";
     1055                     end
     1056 
     1057                     local url = cve_utils.getDocURL(cve_id, host_vulnerabilities.scan_type)
     1058                     
     1059                     print('<a href='..url..'><span class="badge '..badge_type..'">'..cve_id..' </span></a> ')
     1060                 else
     1061                     print('...')
     1062                     break 
     1063                 end
     1064                 i = i + 1
     1065             end
     1066 
     1067         elseif (host_vulnerabilities ~= nil and (host_vulnerabilities.num_vulnerabilities_found == nil or host_vulnerabilities.num_vulnerabilities_found == 0)) then
     1068             print("<tr><th>" .. i18n("hosts_stats.page_scan_hosts.title_hosts_page") .. "</th>")
     1069             print("<td colspan=2>")
     1070             print(i18n("hosts_stats.page_scan_hosts.no_cves_detected"))
     1071             
     1072         elseif (host_vulnerabilities == nil) then
     1073             print("<tr><th>" .. i18n("hosts_stats.page_scan_hosts.title_hosts_page") .. "</th>")
     1074             print("<td colspan=2>")
     1075             print('<a href="' .. ntop.getHttpPrefix() ..'/lua/vulnerability_scan.lua?page=scan_hosts&host='..host["ip"]..'&ifid='..ifId..'">'.. i18n("hosts_stats.page_scan_hosts.add_to_scan_list")..'</a> ')
     1076         end
     1077 
     1078         -- ###########################################################
     1079 
     1080         print("<tr><th></th><th>" .. i18n("details.as_client") .. "</th><th>" .. i18n("details.as_server") ..
     1081                   "</th></tr>\n")
     1082 
     1083         if isScoreEnabled() then
     1084             local score_chart = ""
     1085 
     1086             if charts_available then
     1087                 score_chart = hostinfo2detailshref(host, {
     1088                     page = "historical",
     1089                     tskey = tskey,
     1090                     ts_schema = "host:score"
     1091                 }, '<i class="fas fa-chart-area fa-sm"></i>')
     1092             end
     1093 
     1094             print("<tr><th>" .. i18n("score") .. " " .. score_chart .. "</th>")
     1095 
     1096             local c = host.score_pct and host.score_pct["score_breakdown_client"]
     1097             local s = host.score_pct and host.score_pct["score_breakdown_server"]
     1098 
     1099             print("<td>")
     1100             print("<div class='d-flex align-items-center'>")
     1101             print("<span id='score_as_client'>" .. formatValue(host["score.as_client"] or 0) ..
     1102