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/view | |
parent | 7dc0206e7ff40bfd3e95018a7d724a63ce0af8ab (diff) |
add cust_main-external_links and menu-prepend_links options for wisper NORM links, RT#10889
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 18 |
1 files changed, 16 insertions, 2 deletions
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) { <BR><BR> +% my $br = 0; % if ( $curuser->access_right('Billing event reports') % || $curuser->access_right('View customer billing events') % ) { - +% $br=1; <A HREF="<% $p %>search/cust_event.html?custnum=<% $custnum %>">View billing events for this customer</A> - <BR><BR> +% } +% 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); + <A HREF="<% $url.$custnum %>" ALT="<% $alt |h %>"><% $label |h %></A> +% } +% } + +% if ( $br ) { + <BR><BR> % } +</%doc> %my $signupurl = $conf->config('signupurl'); %if ( $signupurl ) { |