Fix link rendering in stackedProgressBars

This commit is contained in:
Alfredo Cardigliano 2020-02-16 11:19:19 +01:00
parent da6f1c354d
commit 7c90b3b79b
2 changed files with 11 additions and 5 deletions

View file

@ -39,7 +39,7 @@ if not ntop.isWindows() then
local item = {
title = getInterfaceName(if_id),
value = if_info.total,
-- link = ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. if_id
link = ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. if_id
}
if num_items < #classes then
item.class = classes[num_items+1]
@ -56,6 +56,7 @@ if not ntop.isWindows() then
local item = {
title = i18n("system"),
value = storage_info.other,
link = ""
}
item.style = "background-image: linear-gradient(to bottom, grey 0%, darkgrey 100%)"
table.insert(storage_items, item)
@ -74,7 +75,7 @@ if not ntop.isWindows() then
local item = {
title = getInterfaceName(if_id),
value = if_info.pcap,
-- link = ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. if_id
link = ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. if_id
}
if num_items < #classes then
item.class = classes[num_items+1]
@ -91,6 +92,7 @@ if not ntop.isWindows() then
local item = {
title = i18n("system"),
value = storage_info.pcap_other,
link = ""
}
item.style = "background-image: linear-gradient(to bottom, grey 0%, darkgrey 100%)"
table.insert(storage_items, item)