mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
parent
ae0d1e9543
commit
38b3c9ebdc
1 changed files with 8 additions and 0 deletions
|
|
@ -495,6 +495,10 @@ function alert_utils.formatAlertMessage(ifid, alert, alert_json, skip_live_data)
|
|||
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert.entity_id)
|
||||
end
|
||||
|
||||
if not isEmptyString(alert["user_label"]) then
|
||||
msg = string.format('%s <small><span class="text-muted">%s</span></small>', msg, alert["user_label"])
|
||||
end
|
||||
|
||||
return(msg or "")
|
||||
end
|
||||
|
||||
|
|
@ -521,6 +525,10 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, skip_live_d
|
|||
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert_entities.flow.entity_id)
|
||||
end
|
||||
|
||||
if not isEmptyString(alert["user_label"]) then
|
||||
msg = string.format('%s <small><span class="text-muted">%s</span></small>', msg, alert["user_label"])
|
||||
end
|
||||
|
||||
return msg or ""
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue