diff options
author | ivan <ivan> | 2010-12-17 23:44:38 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-12-17 23:44:38 +0000 |
commit | c13e11794f80ddbe8748132d78bff1559782d570 (patch) | |
tree | 1fe15eaaad69dc7099f33d1bec560495941cbc5b /httemplate/elements | |
parent | 7dc0206e7ff40bfd3e95018a7d724a63ce0af8ab (diff) |
add cust_main-external_links and menu-prepend_links options for wisper NORM links, RT#10889
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/menu.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index acbaf41bd..69d793626 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -563,9 +563,19 @@ $help_menu{"About RT v$RT::VERSION"} = [ 'http://www.bestpractical.com/rt', 'Req 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'} = [ |