ntopng/scripts/lua/inc/footer.lua
GabrieleDeri c55c3ab42b
Some checks are pending
Build / build (push) Waiting to run
CIFuzz / Fuzzing (address) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CodeQL / Analyze-1 (push) Waiting to run
E2E Tests / e2e (push) Waiting to run
Put footer in app shell, started simplification (#10602)
* Put footer in app shell, started simplification

* Update dist
2026-07-17 13:26:22 +02:00

31 lines
945 B
Lua

--
-- (C) 2013-26 - ntop.org
--
-- Thin shell: closes the page. All footer/global-shell logic (updates,
-- ext_link_dialog, nEdge modals, 403 handler) now lives in AppShell
-- (http_src/vue/app-shell.vue), mounted once by scripts/lua/inc/menu.lua.
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local ts_utils = require "ts_utils_core"
-- Show InfluxDB error immediately if one is cached
if ts_utils.getDriverName() == "influxdb" then
local msg = ntop.getCache("ntopng.cache.influxdb.last_error")
if not isEmptyString(msg) then
msg = msg:gsub('"', '\\"')
print([[<script type="text/javascript">
document.getElementById("influxdb-error-msg-text").innerHTML = "]] .. msg .. [[";
document.getElementById("influxdb-error-msg").style.display = "";
</script>]])
end
end
print("</main>")
print("</div>")
print("</body>")
print("</html>")