mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Expose MAC location to lua
This commit is contained in:
parent
7efab3c691
commit
ef28a28fc7
2 changed files with 19 additions and 3 deletions
|
|
@ -1484,9 +1484,8 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
function getApplicationLabel(name)
|
||||
icon = ""
|
||||
|
||||
function getApplicationIcon(name)
|
||||
local icon = ""
|
||||
if(name == nil) then name = "" end
|
||||
|
||||
if(findString(name, "Skype")) then icon = '<i class=\'fa fa-skype fa-lg\'></i>'
|
||||
|
|
@ -1502,6 +1501,14 @@ function getApplicationLabel(name)
|
|||
elseif(findString(name, "thunderbird")) then icon = '<i class=\'fa fa-paper-plane fa-lg\'></i>'
|
||||
end
|
||||
|
||||
return(icon)
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function getApplicationLabel(name)
|
||||
local icon = getApplicationIcon(name)
|
||||
|
||||
name = name:gsub("^%l", string.upper)
|
||||
return(icon.." "..name)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue