mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds alert icon to the hosts lists page for hosts with engaged alerts
Implements #2858
This commit is contained in:
parent
1e1840ab46
commit
0e2ad7af31
2 changed files with 10 additions and 10 deletions
|
|
@ -232,6 +232,10 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
column_ip = column_ip .. " ".. discover.getOsIcon(value.operatingSystem)
|
||||
end
|
||||
|
||||
if((value["num_alerts"] ~= nil) and (value["num_alerts"] > 0)) then
|
||||
column_ip = column_ip .. " <i class='fa fa-warning' style='color: #B94A48;'></i>"
|
||||
end
|
||||
|
||||
if value["systemhost"] then column_ip = column_ip .. " <i class='fa fa-flag'></i> " end
|
||||
if value["hiddenFromTop"] then column_ip = column_ip .. " <i class='fa fa-eye-slash'></i> " end
|
||||
if value["childSafe"] then column_ip = column_ip .. getSafeChildIcon() end
|
||||
|
|
@ -289,12 +293,8 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
end
|
||||
end
|
||||
|
||||
if((value["num_alerts"] ~= nil) and (value["num_alerts"] > 0)) then
|
||||
column_name = column_name .. " <i class='fa fa-warning fa-lg' style='color: #B94A48;'></i>"
|
||||
end
|
||||
|
||||
if value["has_blocking_quota"] or value["has_blocking_shaper"] then
|
||||
column_name = column_name .. " <i class='fa fa-ban fa-lg' title='"..i18n("hosts_stats.blocking_traffic_policy_popup_msg").."'></i>"
|
||||
column_name = column_name .. " <i class='fa fa-ban' title='"..i18n("hosts_stats.blocking_traffic_policy_popup_msg").."'></i>"
|
||||
end
|
||||
|
||||
if debug_score then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue