mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
added print_page_title on each page
This commit is contained in:
parent
62ee1c8b37
commit
792a542c41
30 changed files with 158 additions and 151 deletions
|
|
@ -21,6 +21,16 @@ end
|
|||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
local title
|
||||
|
||||
if have_nedge then
|
||||
title = i18n("nedge.users_list") .. " <small><a title='".. i18n("manage_users.manage_users") .."' href='".. ntop.getHttpPrefix() .."/lua/pro/nedge/admin/nf_list_users.lua'><i class='fas fa-cog'></i></a></small>"
|
||||
else
|
||||
title = i18n("pool_stats.host_pool_list")
|
||||
end
|
||||
|
||||
page_utils.print_page_title(title)
|
||||
|
||||
print [[
|
||||
<div id="table-pool"></div>
|
||||
<script>
|
||||
|
|
@ -36,15 +46,7 @@ print [[
|
|||
url: url_update ,
|
||||
]]
|
||||
|
||||
local title
|
||||
|
||||
if have_nedge then
|
||||
title = i18n("nedge.users_list") .. " <small><a title='".. i18n("manage_users.manage_users") .."' href='".. ntop.getHttpPrefix() .."/lua/pro/nedge/admin/nf_list_users.lua'><i class='fas fa-cog'></i></a></small>"
|
||||
else
|
||||
title = i18n("pool_stats.host_pool_list")
|
||||
end
|
||||
|
||||
print('title: "'..title..'",\n')
|
||||
print('title: "",\n')
|
||||
print ('rowCallback: function ( row ) { return pool_table_setID(row); },')
|
||||
|
||||
-- Set the preference table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue