diff options
Diffstat (limited to 'httemplate/view/svc_broadband.cgi')
-rw-r--r-- | httemplate/view/svc_broadband.cgi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi index 627775992..22cbb1f44 100644 --- a/httemplate/view/svc_broadband.cgi +++ b/httemplate/view/svc_broadband.cgi @@ -22,6 +22,7 @@ my @fields = ( 'speed_down', 'speed_up', { field => 'ip_addr', value => \&ip_addr }, + { field => 'sectornum', value => \§ornum }, 'mac_addr', 'latitude', 'longitude', @@ -60,4 +61,15 @@ sub usergroup { join('<BR>', $svc->radius_groups('long_description')); } +sub sectornum { + my $svc_broadband = shift; + return '' unless $svc_broadband->sectornum; + my $tower_sector = $svc_broadband->tower_sector; + my $link = $tower_sector->ip_addr + ? '<A HREF="http://'. $tower_sector->ip_addr. '">' + : ''; + + $link . $tower_sector->description. ( $link ? '</A>' : ''); +} + </%init> |