[freeside-commits] freeside/httemplate/elements menu.html, 1.100.2.2, 1.100.2.3

Ivan,,, ivan at wavetail.420.am
Fri Dec 17 15:44:42 PST 2010


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	menu.html 
Log Message:
add cust_main-external_links and menu-prepend_links options for wisper NORM links, RT#10889

Index: menu.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/menu.html,v
retrieving revision 1.100.2.2
retrieving revision 1.100.2.3
diff -u -w -d -r1.100.2.2 -r1.100.2.3
--- menu.html	20 Nov 2010 23:00:44 -0000	1.100.2.2
+++ menu.html	17 Dec 2010 23:44:40 -0000	1.100.2.3
@@ -560,9 +560,19 @@
   if $conf->config('ticket_system') eq 'RT_Internal';
 
 
-tie my %menu, 'Tie::IxHash',
-  'Billing Main'   => [ $fsurl, 'Billing start page', ],
-;
+tie my %menu, 'Tie::IxHash';
+
+if ( $conf->config('menu-prepend_links')) {
+  my @links = split(/\n/, $conf->config('menu-prepend_links'));
+  foreach my $link (@links) {
+    $link =~ /^\s*(\S+)\s+(.*?)(\s*\(([^\)]*)\))?$/ or next;
+    my($url, $label, $alt) = ($1, $2, $4);
+    $menu{$label} = [ $url, $alt ];
+  }
+}
+
+$menu{'Billing Main'} = [ $fsurl, 'Billing start page', ];
+
 if ( $conf->config('ticket_system') ) {
   $menu{'Ticketing Main'} =
     [ 



More information about the freeside-commits mailing list