mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Generalizes user script categories dropdown contents
This commit is contained in:
parent
c791fc1246
commit
0e2e8c61c4
2 changed files with 20 additions and 19 deletions
|
|
@ -64,21 +64,24 @@ end
|
|||
|
||||
apps_and_categories = {cat_groups, app_groups}
|
||||
|
||||
local context = {
|
||||
script_list = {
|
||||
subdir = script_subdir,
|
||||
template_utils = template,
|
||||
hooks_localizated = titles,
|
||||
confset_id = confset_id,
|
||||
script_subdir = script_subdir,
|
||||
confset_name = confset_name,
|
||||
script_filter = script_filter,
|
||||
page_url = ntop.getHttpPrefix() .. string.format("/lua/admin/edit_configset.lua?confset_id=%u&subdir=%s", confset_id, script_subdir),
|
||||
apps_and_categories = json.encode(apps_and_categories),
|
||||
},
|
||||
script_categories = user_scripts.script_categories,
|
||||
|
||||
}
|
||||
|
||||
-- print config_list.html template
|
||||
print(template.gen("script_list.html", {
|
||||
script_list = {
|
||||
subdir = script_subdir,
|
||||
template_utils = template,
|
||||
hooks_localizated = titles,
|
||||
confset_id = confset_id,
|
||||
script_subdir = script_subdir,
|
||||
confset_name = confset_name,
|
||||
script_filter = script_filter,
|
||||
page_url = ntop.getHttpPrefix() .. string.format("/lua/admin/edit_configset.lua?confset_id=%u&subdir=%s", confset_id, script_subdir),
|
||||
apps_and_categories = json.encode(apps_and_categories),
|
||||
}
|
||||
}))
|
||||
print(template.gen("script_list.html", context))
|
||||
|
||||
-- append the menu below the page
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue