fixed tab for manage_data and add ui_utils.render_notes

addresses #4471
This commit is contained in:
gabryon99 2020-09-25 17:20:49 +02:00
parent 68a36ae7ee
commit a4d17d28d6
8 changed files with 358 additions and 359 deletions

View file

@ -19,4 +19,17 @@ function ui_utils.render_configuration_footer(import_export_context, reset_conte
return table.concat(template, "\n")
end
--- Single not element: { content = 'note description', hidden = true|false }
function ui_utils.render_notes(notes_items)
if notes_items == nil then
ntop.traceEvent("The notes table is nil!")
return ""
end
return template_utils.gen("pages/components/notes.template", {
notes = notes_items
})
end
return ui_utils