[freeside-commits] freeside/torrus/perllib/Torrus/Renderer HTML.pm, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Sun Feb 27 11:08:14 PST 2011
Update of /home/cvs/cvsroot/freeside/torrus/perllib/Torrus/Renderer
In directory wavetail.420.am:/tmp/cvs-serv15380/torrus/perllib/Torrus/Renderer
Modified Files:
HTML.pm
Log Message:
torrus virtual ports, RT#10574
Index: HTML.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/torrus/perllib/Torrus/Renderer/HTML.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- HTML.pm 10 Feb 2011 01:08:44 -0000 1.8
+++ HTML.pm 27 Feb 2011 19:08:12 -0000 1.9
@@ -136,14 +136,21 @@
my $serviceids = shift;
my $svc_port = '';
- $svc_port = $nms->find_svc($serviceids->{$iface})
- if($serviceids && $serviceids->{$iface});
+ if ( $serviceids && $serviceids->{$iface} ) {
+
+ my $svc_port = $nms->find_svc($serviceids->{$iface})
if($svc_port) {
- my $url = $Torrus::Freeside::FSURL."/view/svc_port.cgi?".$svc_port->svcnum;
+ my $url = $Torrus::Freeside::FSURL.
+ "/view/svc_port.cgi?".$svc_port->svcnum;
return "<A HREF='$url'>View Service</A>";
+ } else {
+ return 'Monitored as '. $serviceids->{$iface}.
+ '; customer service not yet provisioned';
}
+ } else {
+
return
$self->freesideComponent('/elements/popup_link.html',
'action' => "/freeside/misc/".
@@ -151,8 +158,10 @@
'label' => 'Monitor for billing',
'actionlabel' => 'Monitor interface',
);
+
}
- elsif($type eq 'nms-add_router.html') {
+
+ } elsif ($type eq 'nms-add_router.html') {
return
$self->freesideComponent('/elements/popup_link.html',
'action' => "/freeside/misc/$type",
More information about the freeside-commits
mailing list