Add missing home button in RTT stats

Fixes #2849
This commit is contained in:
emanuele-f 2019-09-17 16:09:30 +02:00
parent c6668f05c1
commit b090594027
2 changed files with 10 additions and 8 deletions

View file

@ -49,12 +49,10 @@ if host ~= nil then
end
print("</a></li>\n")
if isEmptyString(host) then
if((page == "overview") or (page == nil)) then
print("<li class=\"active\"><a href=\"#\"><i class=\"fa fa-home fa-lg\"></i></a></li>\n")
else
print("<li><a href=\""..url.."&page=overview\"><i class=\"fa fa-home fa-lg\"></i></a></li>")
end
if((page == "overview") or (page == nil)) then
print("<li class=\"active\"><a href=\"#\"><i class=\"fa fa-home fa-lg\"></i></a></li>\n")
else
print("<li><a href=\"".. ntop.getHttpPrefix() .."/lua/system/rtt_stats.lua\"><i class=\"fa fa-home fa-lg\"></i></a></li>")
end
if((host ~= nil) and ts_utils.exists("monitored_host:rtt", {ifid=getSystemInterfaceId(), host=host})) then