mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Reworks and completes attacker/victim for all host alerts
Addresses #5310
This commit is contained in:
parent
24f054f009
commit
9453fca4cb
10 changed files with 36 additions and 23 deletions
|
|
@ -209,7 +209,7 @@ function host_alert_store:format_record(value, no_html)
|
|||
record["is_victim"] = ""
|
||||
|
||||
if value["is_victim"] == true or value["is_victim"] == "1" then
|
||||
record["is_victim"] = '<span style="color: #008000;">✓</span>'
|
||||
record["is_victim"] = '<i class="fas fa-sad-tear"></i>'
|
||||
record["role"] = {
|
||||
label = i18n("victim"),
|
||||
value = "victim",
|
||||
|
|
@ -217,7 +217,7 @@ function host_alert_store:format_record(value, no_html)
|
|||
end
|
||||
|
||||
if value["is_attacker"] == true or value["is_attacker"] == "1" then
|
||||
record["is_attacker"] = '<span style="color: #008000;">✓</span>'
|
||||
record["is_attacker"] = '<i class="fas fa-skull"></i>'
|
||||
record["role"] = {
|
||||
label = i18n("attacker"),
|
||||
value = "attacker",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue