mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Fixes various issues in flow exporters page
This commit is contained in:
parent
d07f9efd0f
commit
35df60db11
9 changed files with 326 additions and 148 deletions
|
|
@ -1592,6 +1592,26 @@ if ((ifname == nil) and (_GET ~= nil)) then
|
|||
end
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief this function returns the correctly formatted a tag in html
|
||||
-- with correctly set value, name and url
|
||||
function formatHTMLaTag(real_value, name, url)
|
||||
local use_title = true
|
||||
local link = ''
|
||||
if (real_value == name) then
|
||||
use_title = false
|
||||
end
|
||||
|
||||
if (use_title) then
|
||||
link = '<a href="' .. url .. '" data-bs-toggle="tooltip" data-bs-placement="top" title="' .. real_value .. '">' .. name .. '</a>'
|
||||
else
|
||||
link = '<a href="' .. url .. '">' .. real_value .. '</a>'
|
||||
end
|
||||
|
||||
return link
|
||||
end
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue