mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Geolocation support instructions in the AS and countries pages
This commit is contained in:
parent
e25e80cc6a
commit
cfa3c0d1b4
6 changed files with 21 additions and 11 deletions
|
|
@ -16,6 +16,12 @@ page_utils.print_header(i18n("countries"))
|
|||
active_page = "hosts"
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
if not ntop.hasGeoIP() then
|
||||
print('<div class="alert alert-warning" role="alert"><i class="fas fa-exclamation-triangle fa-lg" id="alerts-menu-triangle"></i> ')
|
||||
print(i18n("geolocation_unavailable"))
|
||||
print('</div>')
|
||||
else
|
||||
|
||||
print [[
|
||||
<div id="table-country"></div>
|
||||
<script>
|
||||
|
|
@ -146,4 +152,6 @@ print [[
|
|||
|
||||
]]
|
||||
|
||||
end -- not ntop.hasGeoIP
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue