mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
nEdge menu fixes
This commit is contained in:
parent
c34a2fe735
commit
c6797f4476
3 changed files with 22 additions and 13 deletions
|
|
@ -15,16 +15,25 @@ sendHTTPContentTypeHeader('text/html')
|
|||
if not haveAdminPrivileges() then return end
|
||||
|
||||
-- The order key is used to set an order for the rendered list in the page
|
||||
local configuration_items = {
|
||||
all = {key = "all", label = i18n("manage_configurations.everything", {product = ntop.getInfo()["product"]}), order = 0 },
|
||||
snmp = {key = "snmp", label = i18n("manage_configurations.snmp"), order = 1},
|
||||
active_monitoring = {key = "active_monitoring", label = i18n("manage_configurations.active_monitoring"), order = 2},
|
||||
scripts = {key = "scripts", label = i18n("manage_configurations.user_scripts"), order = 3},
|
||||
notifications = {key = "notifications", label = i18n("manage_configurations.notifications"), order = 4},
|
||||
pool = {key = "pool", label = i18n("manage_configurations.pool_endpoint_recipients"), order = 5},
|
||||
}
|
||||
local configuration_items
|
||||
|
||||
local selected_item = (table.has_key(configuration_items, _GET["item"]) and _GET["item"] or "snmp")
|
||||
if not ntop.isnEdge() then
|
||||
configuration_items = {
|
||||
all = {key = "all", label = i18n("manage_configurations.everything", {product = ntop.getInfo()["product"]}), order = 0 },
|
||||
snmp = {key = "snmp", label = i18n("manage_configurations.snmp"), order = 1},
|
||||
active_monitoring = {key = "active_monitoring", label = i18n("manage_configurations.active_monitoring"), order = 2},
|
||||
scripts = {key = "scripts", label = i18n("manage_configurations.user_scripts"), order = 3},
|
||||
notifications = {key = "notifications", label = i18n("manage_configurations.notifications"), order = 4},
|
||||
pool = {key = "pool", label = i18n("manage_configurations.pool_endpoint_recipients"), order = 5},
|
||||
}
|
||||
else
|
||||
configuration_items = {
|
||||
all = {key = "all", label = i18n("manage_configurations.everything", {product = ntop.getInfo()["product"]}), order = 0 },
|
||||
scripts = {key = "scripts", label = i18n("manage_configurations.user_scripts"), order = 1},
|
||||
}
|
||||
end
|
||||
|
||||
local selected_item = (table.has_key(configuration_items, _GET["item"]) and _GET["item"] or "all")
|
||||
|
||||
page_utils.set_active_menu_entry(page_utils.menu_entries.manage_configurations)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue