fix key rendering in widegts list and added get_widget inside widget_utils

This commit is contained in:
gabryon99 2020-04-17 20:19:22 +02:00
parent 848a5db012
commit 176e3d7c29
3 changed files with 59 additions and 6 deletions

View file

@ -32,7 +32,6 @@ local interfaces_list = {}
interfaces_list[-1] = "None"
for v, k in pairs(iface_names) do
interface.select(k)
local _ifstats = interface.getStats()
interfaces_list[_ifstats.id] = getHumanReadableInterfaceName(_ifstats.description .. "")
@ -49,7 +48,6 @@ local context = {
info = ntop.getInfo(),
}
-- print config_list.html template
print(template.gen("pages/widgets_list.template", context))
-- append the menu below the page