mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
added endpoint column
This commit is contained in:
parent
cb966bd15d
commit
dc322144ed
5 changed files with 26 additions and 2 deletions
|
|
@ -29,10 +29,18 @@ menu_alert_notifications.render_notifications('recipients', {})
|
|||
|
||||
page_utils.print_page_title(i18n("endpoint_notifications.recipient_list"))
|
||||
|
||||
-- localize endpoint name types in a table
|
||||
local endpoints_types = notification_configs.get_types()
|
||||
local endpoint_types_labels = {}
|
||||
for endpoint_key, _ in pairs(endpoints_types) do
|
||||
endpoint_types_labels[endpoint_key] = i18n('endpoint_notifications.types.'..endpoint_key)
|
||||
end
|
||||
|
||||
-- Prepare the response
|
||||
local context = {
|
||||
notifications = {
|
||||
endpoints = notification_configs.get_types(),
|
||||
endpoints = endpoints_types,
|
||||
endpoint_types_labels = endpoint_types_labels,
|
||||
endpoint_list = endpoints,
|
||||
},
|
||||
template_utils = template,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue