From c13e11794f80ddbe8748132d78bff1559782d570 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 17 Dec 2010 23:44:38 +0000 Subject: add cust_main-external_links and menu-prepend_links options for wisper NORM links, RT#10889 --- httemplate/view/cust_main.cgi | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'httemplate/view/cust_main.cgi') diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index df875f939..e6db0a6c1 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -93,14 +93,28 @@ function areyousure(href, message) {

+% my $br = 0; % if ( $curuser->access_right('Billing event reports') % || $curuser->access_right('View customer billing events') % ) { - +% $br=1; View billing events for this customer -

+% } +% if ( $conf->config('cust_main-external_links') ) { + <% $br++ ? ' | ' : '' %> +% 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); + <% $label |h %> +% } +% } + +% if ( $br ) { +

% } + %my $signupurl = $conf->config('signupurl'); %if ( $signupurl ) { -- cgit v1.2.1