mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Replaces flow alert with the new page with resizable columns
Removed external link from flow alert page
This commit is contained in:
parent
fde10e929e
commit
b42587325e
5 changed files with 11 additions and 9 deletions
|
|
@ -1550,14 +1550,15 @@ end
|
|||
-- no_html: A boolean, true if no_html is requested (e.g. Download in CSV format),
|
||||
-- false otherwise
|
||||
-- @return A string containing the info field formatted
|
||||
function format_external_link(url, name, no_html, proto)
|
||||
function format_external_link(url, name, no_html, proto, i18n_key)
|
||||
local external_field = url
|
||||
proto = ternary(((proto) and (proto == 'http')), 'http', 'https')
|
||||
|
||||
if no_html == false then
|
||||
if not isEmptyString(url) and not string.find(url, '*') then
|
||||
url = string.gsub(url, " ", "") -- Clean the URL from spaces and %20, spaces in html
|
||||
external_field = i18n("external_link_url", { proto = proto, url = url, url_name = name})
|
||||
if not isEmptyString(url) and not string.find(url, '*') then
|
||||
if(i18n_key == nil) then i18n_key = "external_link_url" end
|
||||
url = string.gsub(url, " ", "") -- Clean the URL from spaces and %20, spaces in html
|
||||
external_field = i18n(i18n_key, { proto = proto, url = url, url_name = name})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue