mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Only show host pools graph icon if there is graph data or we are in bridge mode
This commit is contained in:
parent
91728e40ee
commit
d3debf04ef
1 changed files with 9 additions and 1 deletions
|
|
@ -151,10 +151,18 @@ function print_single_group(value)
|
|||
if(manufacturer == nil) then manufacturer = "" end
|
||||
print(manufacturer..'</A>", ')
|
||||
elseif(group_col == "pool_id") then
|
||||
local poolstats_rrd = host_pools_utils.getRRDBase(ifstats.id, value["id"])
|
||||
local pool_name = host_pools_utils.getPoolName(getInterfaceId(ifname), tostring(value["id"]))
|
||||
|
||||
print(pool_name..'</A> " , ')
|
||||
print('"column_chart": "')
|
||||
print('<A HREF='..ntop.getHttpPrefix()..'/lua/pool_details.lua?pool='..value["id"]..'&page=historical><i class=\'fa fa-area-chart fa-lg\'></i></A>')
|
||||
|
||||
if ntop.exists(poolstats_rrd) or isBridgeInterface(ifstats) --[[ Need to show the icon to go into the quotas page ]] then
|
||||
print('<A HREF='..ntop.getHttpPrefix()..'/lua/pool_details.lua?pool='..value["id"]..'&page=historical><i class=\'fa fa-area-chart fa-lg\'></i></A>')
|
||||
else
|
||||
print('')
|
||||
end
|
||||
|
||||
print('", ')
|
||||
elseif(group_col == "asn") then
|
||||
print(value["id"]..'</A>", ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue