mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 15:09:33 +00:00
* Fixed #8492, removed unused formatting function in lua * Fixed host pool doc #8487 * Fixed ebroken menu entry highlight #8498 * Fixed geomap REST location: #8486 * Removed log * Added german #8488 * Implemented ticket: #7648 * Added new endpoints to python API * Implemented flow exporter table: #8490
42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
--
|
|
-- (C) 2020 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
require "lua_utils"
|
|
require "ntop_utils"
|
|
|
|
local page_utils = require "page_utils"
|
|
local json = require "dkjson"
|
|
local template_utils = require("template_utils")
|
|
local page = _GET["page"]
|
|
|
|
sendHTTPContentTypeHeader('text/html')
|
|
|
|
page_utils.print_header_and_set_active_menu_entry(page_utils.menu_entries.countries)
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|
|
|
page_utils.print_navbar(i18n("countries"), ntop.getHttpPrefix() .. "/lua/country_stats.lua", {{
|
|
active = page == "overview" or not page,
|
|
page_name = "overview",
|
|
label = "<i class=\"fas fa-lg fa-home\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"" ..
|
|
i18n("countries") .. "\"></i>"
|
|
}})
|
|
|
|
local context = {
|
|
ifid = interface.getId()
|
|
}
|
|
|
|
local json_context = json.encode(context)
|
|
|
|
template_utils.render("pages/vue_page.template", {
|
|
vue_page_name = "PageSankeyTest",
|
|
page_context = json_context
|
|
})
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
|
|
|
|