Moved active hosts page from interface to hosts, improved tooltip (#8763)

This commit is contained in:
GabrieleDeri 2024-10-22 09:48:45 +02:00 committed by GitHub
parent 3eed41e918
commit f640be21d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 13 deletions

View file

@ -321,11 +321,6 @@ page_utils.print_navbar(title, url, { {
active = page == "sites",
page_name = "sites",
label = i18n("sites_page.sites")
}, {
hidden = not host_ts_available or not ntop.isEnterpriseM(),
active = page == "local_hosts_report",
page_name = "local_hosts_report",
label = i18n("local_hosts_report")
}, {
hidden = not charts_available,
active = page == "historical",
@ -1740,12 +1735,6 @@ elseif (page == "sites") then
print("<div class='alert alert-info'><i class='fas fa-info-circle fa-lg' aria-hidden='true'></i> " .. msg ..
"</div>")
end
elseif (page == "local_hosts_report") then
local json_context = json.encode({
ifid = ifstats.id,
csrf = ntop.getRandomCSRFValue()
})
template.render("pages/vue_page.template", { vue_page_name = "PageLocalHostsReport", page_context = json_context })
elseif (page == "historical") then
local source_value_object = {
ifid = interface.getId()