mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Improves alerts with better descriptions and hyperlinks
Implements #4585
This commit is contained in:
parent
dfd632e3b5
commit
355be90e5d
5 changed files with 291 additions and 248 deletions
|
|
@ -68,4 +68,20 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Returns the pool url for a pool with a given `pool_key`
|
||||
-- @param pool_key A pool key string as found inside `create` method of any pools instance.
|
||||
-- If no pool key is found, the home of the pool url is returned.
|
||||
-- @return The pool url
|
||||
function pools_lua_utils.get_pool_url(pool_key)
|
||||
local pool_url = ntop.getHttpPrefix().."/lua/admin/manage_pools.lua"
|
||||
|
||||
if pool_key then
|
||||
pool_url = pool_url.."?page="..pool_key
|
||||
end
|
||||
|
||||
return pool_url
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
return pools_lua_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue