mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes local and remote badges not formatted
This commit is contained in:
parent
90c2279d0d
commit
8c1fb61e60
3 changed files with 21 additions and 3 deletions
|
|
@ -5482,6 +5482,22 @@ function format_confidence_from_json(record)
|
|||
|
||||
return confidence
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function format_location_badge(location)
|
||||
local loc = string.lower(location) or ""
|
||||
|
||||
if loc == "l" then
|
||||
loc = i18n("details.label_short_local_host_badge")
|
||||
elseif loc == "r" then
|
||||
loc = i18n("details.label_short_remote_host_badge")
|
||||
end
|
||||
|
||||
return loc
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue