[freeside-commits] freeside/httemplate/elements menu.html, 1.103, 1.104

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


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

Modified Files:
	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.103
retrieving revision 1.104
diff -u -w -d -r1.103 -r1.104
--- menu.html	10 Dec 2010 06:02:52 -0000	1.103
+++ menu.html	17 Dec 2010 23:44:38 -0000	1.104
@@ -563,9 +563,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