diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2015-03-27 14:20:48 -0500 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-03-27 14:20:48 -0500 |
| commit | d9db63d82fce670cc3c21f86e577dd99c3d14028 (patch) | |
| tree | df09c1d38f0845594e59d47b336e7a427e59d289 /httemplate/view | |
| parent | 1c9056a27c303170060004c1be93787c6a32dcb6 (diff) | |
RT#18834: Cacti integration [real graph import]
Diffstat (limited to 'httemplate/view')
| -rw-r--r-- | httemplate/view/svc_broadband.cgi | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi index 9fe10bd3a..4935a1096 100644 --- a/httemplate/view/svc_broadband.cgi +++ b/httemplate/view/svc_broadband.cgi @@ -72,15 +72,11 @@ sub ip_addr { my $out = $ip_addr; $out .= ' (' . include('/elements/popup_link-ping.html', ip => $ip_addr) . ')' if $ip_addr; - if ($svc->cacti_leaf_id) { - # should only ever be one, but not sure if that is enforced - my ($cacti) = $svc->cust_svc->part_svc->part_export('cacti'); - $out .= ' (<A HREF="' - . $cacti->option('base_url') - . 'graph_view.php?action=tree&tree_id=' - . $cacti->option('tree_id') - . '&leaf_id=' - . $svc->cacti_leaf_id + if ($svc->cust_svc->part_svc->part_export('cacti')) { + $out .= ' (<A HREF="' + . popurl(2) + . 'misc/cacti_graphs.html?load=1&svcnum=' + . $svc->svcnum . '">cacti</A>)'; } if ( my $addr_block = $svc->addr_block ) { |
