[freeside-commits] freeside/httemplate/view svc_broadband.cgi, 1.23, 1.24

Ivan,,, ivan at wavetail.420.am
Fri Dec 9 16:36:49 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv4959/httemplate/view

Modified Files:
	svc_broadband.cgi 
Log Message:
tower tracking, RT#15538

Index: svc_broadband.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_broadband.cgi,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -w -d -r1.23 -r1.24
--- svc_broadband.cgi	10 Nov 2011 21:40:05 -0000	1.23
+++ svc_broadband.cgi	10 Dec 2011 00:36:47 -0000	1.24
@@ -22,6 +22,7 @@
   'speed_down',
   'speed_up',
   { field => 'ip_addr', value => \&ip_addr },
+  { field => 'sectornum', value => \&sectornum },
   'mac_addr',
   'latitude',
   'longitude',
@@ -60,4 +61,15 @@
   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>



More information about the freeside-commits mailing list