mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Fix flow scripts editor path
This commit is contained in:
parent
e6346c06eb
commit
114a5fafa3
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,8 @@ local function print_callbacks_config_table(descr, expert_view)
|
|||
local url = ''
|
||||
|
||||
if(user_script.edition == "community") then
|
||||
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>'
|
||||
local path = string.sub(user_script.source_path, string.len(ntop.getDirs().scriptdir)+1)
|
||||
url = '<A HREF="/lua/code_viewer.lua?lua_script_path='.. path ..'"><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