mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Added score in hosts map
This commit is contained in:
parent
5d6f5b2426
commit
1f4c8212e6
4 changed files with 27 additions and 10 deletions
|
|
@ -40,23 +40,23 @@ local select_options = {}
|
|||
|
||||
-- generate the dropdown menu
|
||||
for i,v in pairs(MODES) do
|
||||
select_options[#select_options+1] = '<option '.. (bubble_mode == v.mode and 'selected' or '') ..' value="'..tostring(v.mode)..'">'..v.label..'</option>'
|
||||
select_options[#select_options+1] = '<option '.. (bubble_mode == v.mode and 'selected' or '') ..' value="'..tostring(v.mode)..'">'..v.label..'</option>'
|
||||
end
|
||||
|
||||
-- register the bubble chart for the hosts map
|
||||
widget_gui_utils.register_bubble_chart(widget_name, 0, {
|
||||
Datasource(map_endpoint, {bubble_mode = bubble_mode})
|
||||
Datasource(map_endpoint, {bubble_mode = bubble_mode})
|
||||
})
|
||||
|
||||
template_utils.render("pages/hosts_map.template", {
|
||||
widget_gui_utils = widget_gui_utils,
|
||||
hosts_map = {
|
||||
select_options = table.concat(select_options, ''),
|
||||
bubble_mode = bubble_mode,
|
||||
current_label = current_label,
|
||||
widget_name = widget_name,
|
||||
map_endpoint = map_endpoint
|
||||
}
|
||||
widget_gui_utils = widget_gui_utils,
|
||||
hosts_map = {
|
||||
select_options = table.concat(select_options, ''),
|
||||
bubble_mode = bubble_mode,
|
||||
current_label = current_label,
|
||||
widget_name = widget_name,
|
||||
map_endpoint = map_endpoint
|
||||
}
|
||||
})
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue