Adds historical alerts explorer hyperlinks

This commit is contained in:
Simone Mainardi 2016-12-13 16:50:15 +01:00
parent 44e0d1ef0c
commit 2e86b1cbe6
2 changed files with 4 additions and 2 deletions

View file

@ -151,7 +151,7 @@ for _key,_value in ipairs(alerts) do
column_id = column_id.."<input type=hidden name=id_to_delete value="..alert_id.."><input type=hidden name=currentPage value=".. currentPage .."><input type=hidden name=perPage value=".. perPage .."><input type=hidden name=status value="..tostring(status).."><input type=hidden name=alerts_impl value="..tostring(alertsImpl).."><button class='btn btn-default btn-xs' type='submit'><input id=csrf name=csrf type=hidden value='"..ntop.getRandomCSRFValue().."' /><i type='submit' class='fa fa-trash-o'></i></button></form>"
if ntop.isEnterprise() and status == "historical-flows" then
if ntop.isEnterprise() and (status == "historical-flows" or status == "historical") then
local explore = function()
local url = ntop.getHttpPrefix() .. "/lua/pro/enterprise/flow_alerts_explorer.lua?"
local origin = _value["cli_addr"]