Reworks layout of blacklisted flows and location

This commit is contained in:
Simone Mainardi 2019-02-13 14:25:20 +01:00
parent f9e3edb19b
commit 47a3d7b2ef
3 changed files with 11 additions and 11 deletions

View file

@ -254,6 +254,10 @@ for _key, _value in pairsByKeys(vals, funct) do
if(value.dhcpHost) then column_ip = column_ip .. "&nbsp;<i class='fa fa-flash fa-lg' title='DHCP Host'></i>" end
end
if host["is_blacklisted"] == true then
column_ip = column_ip .. "&nbsp;<span class='label label-danger'>"..i18n("hosts_stats.label_blacklisted_host").."</span>"
end
record["column_ip"] = column_ip
if(url ~= nil) then
@ -365,10 +369,6 @@ for _key, _value in pairsByKeys(vals, funct) do
column_location = column_location.." <span class='label label-info'><i class='fa fa-sitemap' title='"..i18n("hosts_stats.label_broadcast_domain_host").."'></i></span>"
end
if value["is_blacklisted"] == true then
column_location = column_location .. " <span class='label label-danger'>"..i18n("hosts_stats.label_blacklisted_host").."</span>"
end
record["column_location"] = column_location
end