mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
updated nindex page template
This commit is contained in:
parent
c0815c4329
commit
13596ea4e0
5 changed files with 89 additions and 41 deletions
|
|
@ -80,16 +80,19 @@ function ui_utils.render_datetime_range_picker(options)
|
|||
local buttons = { permalink = false, download = false }
|
||||
local records = { 10, 25, 50, 100 }
|
||||
local tags = { enabled = true, values = {}}
|
||||
local tags_localization = {}
|
||||
|
||||
options = options or {}
|
||||
|
||||
options.json = json
|
||||
|
||||
options.presets = ternary(options.presets ~= nil, table.merge(presets, options.presets), presets)
|
||||
options.buttons = ternary(options.buttons ~= nil, table.merge(buttons, options.buttons), buttons)
|
||||
options.records = ternary(options.records ~= nil, options.records, records)
|
||||
options.max_delta_in = ternary(options.max_delta_in ~= nil, options.max_delta_in, 300)
|
||||
options.max_delta_out = ternary(options.max_delta_in ~= nil, options.max_delta_in, 43200)
|
||||
options.tags = ternary(options.tags ~= nil, table.merge(tags, options.tags), tags)
|
||||
options.tags.localization = ternary(options.tags.i18n ~= nil, table.merge(tags_localization, options.tags.i18n), tags_localization)
|
||||
|
||||
return template_utils.gen("pages/components/range-picker.template", options)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue