Add pool graphs links in other pages, hide if disabled from preferences

This commit is contained in:
emanuele-f 2017-06-05 19:13:53 +02:00
parent 3044d5ebf3
commit 2a4d7e0e1d
4 changed files with 15 additions and 3 deletions

View file

@ -157,7 +157,7 @@ function print_single_group(value)
print(pool_name..'</A> " , ')
print('"column_chart": "')
if ntop.exists(poolstats_rrd) or isBridgeInterface(ifstats) --[[ Need to show the icon to go into the quotas page ]] then
if (ntop.getCache("ntopng.prefs.host_pools_rrd_creation") == "1" and ntop.exists(poolstats_rrd)) 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('')