mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Reworked locales and menu
This commit is contained in:
parent
c18a83da2e
commit
bbfcc42994
8 changed files with 48 additions and 30 deletions
|
|
@ -254,12 +254,14 @@ if(isAdministrator()) then
|
|||
end
|
||||
end
|
||||
|
||||
if ntop.isEnterprise() then
|
||||
if(page == "report") then
|
||||
print("\n<li class=\"active\"><a href=\"#\"><i class=\"fa fa-file-text fa-lg\"></i></a></li>\n")
|
||||
else
|
||||
print("\n<li><a href=\""..url.."&page=report\"><i class=\"fa fa-file-text fa-lg\"></i></a></li>")
|
||||
end
|
||||
if(ntop.isEnterprise()) then
|
||||
if(page == "traffic_report") then
|
||||
print("\n<li class=\"active\"><a href=\"#\"><i class='fa fa-file-text fa-lg'></i></a></li>\n")
|
||||
else
|
||||
print("\n<li><a href=\""..url.."&page=traffic_report\"><i class='fa fa-file-text fa-lg'></i></a></li>")
|
||||
end
|
||||
else
|
||||
print("\n<li><a href=\"#\" title=\""..i18n('enterpriseOnly').."\"><i class='fa fa-file-text fa-lg'></i></A></li>\n")
|
||||
end
|
||||
|
||||
if(isAdministrator()) then
|
||||
|
|
@ -1444,8 +1446,8 @@ end
|
|||
});
|
||||
</script>
|
||||
]]
|
||||
elseif page == "report" then
|
||||
dofile(dirs.installdir .. "/pro/scripts/lua/traffic_report.lua")
|
||||
elseif page == "traffic_report" then
|
||||
dofile(dirs.installdir .. "/pro/scripts/lua/enterprise/traffic_report.lua")
|
||||
end
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue