mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
added print_page_title on each page
This commit is contained in:
parent
62ee1c8b37
commit
792a542c41
30 changed files with 158 additions and 151 deletions
|
|
@ -12,7 +12,6 @@ local page = _GET["page"] or "overview"
|
|||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
||||
|
||||
page_utils.set_active_menu_entry(page_utils.menu_entries.telemetry)
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
|
@ -24,18 +23,9 @@ Create Menu Bar with buttons
|
|||
local nav_url = ntop.getHttpPrefix().."/lua/telemetry.lua?ifid="..interface.getId()
|
||||
local title = i18n("telemetry")
|
||||
|
||||
page_utils.print_navbar(title, url,
|
||||
{
|
||||
{
|
||||
active = page == "overview" or not page,
|
||||
page_name = "overview",
|
||||
label = "<i class=\"fas fa-home fa-lg\"></i>",
|
||||
},
|
||||
}
|
||||
)
|
||||
page_utils.print_page_title(title)
|
||||
|
||||
telemetry_utils.print_overview()
|
||||
|
||||
if page == "overview" then
|
||||
telemetry_utils.print_overview()
|
||||
end
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue