Hide elements and reorganize menu in nEdge

This commit is contained in:
emanuele-f 2018-01-23 15:28:36 +01:00
parent 1878096bb2
commit 24ed4ac212
11 changed files with 131 additions and 75 deletions

View file

@ -618,6 +618,7 @@ local global_redis_thresholds_key = "thresholds"
function drawAlertSourceSettings(entity_type, alert_source, delete_button_msg, delete_confirm_msg, page_name, page_params, alt_name, show_entity, options)
local num_engaged_alerts, num_past_alerts, num_flow_alerts = 0,0,0
local tab = _GET["tab"]
local have_nedge = ntop.isnEdge()
-- This code controls which entries to show under the tabs Every Minute/Hourly/Daily
local descr
@ -937,6 +938,7 @@ function drawAlertSourceSettings(entity_type, alert_source, delete_button_msg, d
end
-- Print the config
if not have_nedge then
for _, config in ipairs(anomalies_config) do
print("<tr><td><b>"..(config.title).."</b><br>\n")
print("<small>"..(config.descr)..".</small>")
@ -952,8 +954,8 @@ function drawAlertSourceSettings(entity_type, alert_source, delete_button_msg, d
print("</td></tr>")
end
end
end
print [[
</tbody> </table>