summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2011-12-10 00:36:47 +0000
committerivan <ivan>2011-12-10 00:36:47 +0000
commite6f7e02b32ebaa471230819d36a88f88b98bed6a (patch)
tree7af39d4c474621a698d1b2b71efb9c630aedefab /httemplate/view
parent980f3fdaab3a99451b83367860427a3226ab9f98 (diff)
tower tracking, RT#15538
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/svc_broadband.cgi12
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 => \&sectornum },
'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>