Removed "hide from top" hist feature that was not popular and reduced the overall speed

Added icon for blackhole hosts (i.e. hosts RX-only)
This commit is contained in:
Luca Deri 2023-02-17 15:00:53 +01:00
parent ce5c657432
commit 2f20e3f903
18 changed files with 62 additions and 53 deletions

View file

@ -402,7 +402,7 @@ function format_utils.formatFullAddressCategory(host)
addr_category = addr_category .. ' <i class=\"fas fa-bolt\" title=\"'..i18n("details.label_dhcp")..'\"></i>'
end
end
return addr_category
end
@ -430,6 +430,10 @@ function format_utils.formatMainAddressCategory(host)
else
addr_category = addr_category .. ' <abbr title=\"'.. i18n("details.label_remote") ..'\"><span class="badge bg-secondary">'..i18n("details.label_short_remote")..'</span></abbr>'
end
if(host.is_blackhole == true) then
addr_category = addr_category .. ' <abbr title=\"'.. i18n("details.label_blackhole") ..'\"><span class="badge bg-info">'..i18n("details.label_short_blackhole")..'</span></abbr>'
end
end
return addr_category