mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Add source path, plugin and edition in user scripts
This commit is contained in:
parent
fbbec75c54
commit
15759c8db2
6 changed files with 110 additions and 25 deletions
|
|
@ -82,8 +82,12 @@ local function print_callbacks_config_table(descr, expert_view)
|
|||
rowspan = string.format(' rowspan="%d"', num_hooks)
|
||||
end
|
||||
|
||||
local url = '<A HREF="/lua/code_viewer.lua?lua_script_path=/plugins/'..mod_k..'/user_scripts/flow/'..mod_k..'.lua"><i class="fa fa-lg fa-binoculars"></i></A>'
|
||||
url = "" -- TODO: remove this line as soon as we are able to select only the community scripts
|
||||
local url = ''
|
||||
|
||||
if(user_script.edition == "community") then
|
||||
-- TODO: see user_script.source_path
|
||||
--url = '<A HREF="/lua/code_viewer.lua?lua_script_path=/plugins/'..mod_k..'/user_scripts/flow/'..mod_k..'.lua"><i class="fa fa-lg fa-binoculars"></i></A>'
|
||||
end
|
||||
print("<tr><td ".. rowspan .."><b>".. title .." "..url.."</b><br>")
|
||||
print("<small>"..description.."</small></td>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue