mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
New page_utils api to handle sidebar subitems selection
This commit is contained in:
parent
6704ae5040
commit
4f6788fb58
73 changed files with 197 additions and 143 deletions
|
|
@ -6,7 +6,6 @@ local dirs = ntop.getDirs()
|
|||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
-- io.write ("Session:".._SESSION["session"].."\n")
|
||||
require "lua_utils"
|
||||
active_page = "dashboard"
|
||||
|
||||
local page_utils = require("page_utils")
|
||||
|
||||
|
|
@ -36,11 +35,10 @@ end
|
|||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
||||
page_utils.print_header()
|
||||
page_utils.set_active_menu_entry(page_utils.menu_entries.traffic_dashboard)
|
||||
|
||||
-- NOTE: in the home page, footer.lua checks the ntopng version
|
||||
-- so in case we change it, footer.lua must also be updated
|
||||
active_page = "home"
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue