-- -- (C) 2014-18 - ntop.org -- local live_traffic_utils = {} function live_traffic_utils.printLiveTrafficForm(ifid, host_info) local show_modal = false if host_info and (tonumber(host_info["vlan"]) or 0) > 0 then show_modal = true local template = require "template_utils" print( template.gen("modal_confirm_dialog.html", { dialog = { id = "live_traffic_download_modal", action = "live_traffic_download_submit()", title = i18n("live_traffic.modal_vlan_tagged_with_bpf_title"), message = i18n("live_traffic.modal_vlan_tagged_with_bpf_confirmation", {vlan = host_info["vlan"]}), confirm = i18n("live_traffic.modal_vlan_tagged_with_bpf_continue") } }) ) end print[[
]] if host_info then print[[]] end print[[
]] end return live_traffic_utils