")
return
end
local title = i18n(ternary(have_nedge, "nedge.user", "pool_details.host_pool"))..": "..pool_name
page_utils.print_navbar(title, base_url,
{
{
active = page == "historical" or not page,
page_name = "historical",
label = "",
},
{
hidden = not ntop.isEnterprise() or not ntop.isnEdge() or not ifstats or pool_id == host_pools_utils.DEFAULT_POOL_ID,
active = page == "quotas",
page_name = "quotas",
label = i18n("quotas"),
},
}
)
local pools_stats = interface.getHostPoolsStats()
local pool_stats = pools_stats and pools_stats[tonumber(pool_id)]
if (ntop.isEnterprise() or ntop.isnEdge()) and pool_id ~= host_pools_utils.DEFAULT_POOL_ID and ifstats.inline and (page == "quotas") and (pool_stats ~= nil) then
print(
template.gen("modal_confirm_dialog.html", {
dialog={
id = "reset_quotas_dialog",
action = "$('#reset_quotas_form').submit()",
title = i18n("host_pools.reset_quotas"),
message = i18n("host_pools.confirm_reset_pool_quotas", {pool=pool_name}),
confirm = i18n("host_pools.reset_quotas"),
}
})
)
print[[]]
host_pools_utils.printQuotas(pool_id, nil, page_params)
print[[
]]
if ntop.isnEdge() then
print[[]]
end
print[[
]]
elseif page == "historical" then
if(not areHostPoolsTimeseriesEnabled(ifId)) then
print("