mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Moved active hosts page from interface to hosts, improved tooltip (#8763)
This commit is contained in:
parent
3eed41e918
commit
f640be21d5
5 changed files with 21 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue