mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added href to service/periodicity table
This commit is contained in:
parent
91b533a625
commit
12ce80fdb6
1 changed files with 11 additions and 2 deletions
|
|
@ -4342,12 +4342,21 @@ function builMapHREF(ip_address, vlan_id, map, default_page)
|
|||
|
||||
local name = hostinfo2label(hinfo)
|
||||
local res
|
||||
local host
|
||||
|
||||
if((name == nil) or (name == "")) then name = ip_address end
|
||||
res = '<a href="'..ntop.getHttpPrefix()..'/lua/pro/enterprise/'..map..'_map.lua?host='..ip_address
|
||||
host = '<a href="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..ip_address
|
||||
|
||||
if(vlan_id and (vlan_id ~= 0)) then res = res .. "@"..vlan_id end
|
||||
res = res ..'&page='..default_page..'">'..name..'</A>'
|
||||
if(vlan_id and (vlan_id ~= 0)) then
|
||||
res = res .. "@"..vlan_id
|
||||
host = host .. "@" .. vlan_id
|
||||
end
|
||||
|
||||
res = res ..'&page='..default_page..'">'..name..'</a>'
|
||||
host = host .. '"><i class="fas fa-laptop"></i></a>'
|
||||
|
||||
res = res .. ' ' .. host
|
||||
|
||||
return(res)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue