% # activate rolldown buttons for hidden package blocks
% if ( $cust_main->num_cancelled_pkgs ) { % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me % || ( $conf->exists('hidecancelledpackages') % && ! $cgi->param('showcancelledpackages') % ) % ) % { % my $prev = $cgi->param('showcancelledpackages'); % $cgi->param('showcancelledpackages', 1); ( <% mt('show') |h %> % $cgi->param('showcancelledpackages', $prev); % } else { % $cgi->param('showcancelledpackages', 0); ( <% mt('hide') |h %> % $cgi->param('showcancelledpackages', 1); % } <% mt('cancelled packages') |h %> ) % } % if ( $num_old_packages ) { % $cgi->param('showoldpackages', 1); ( <% mt('show old packages') |h %> ) % } elsif ( $cgi->param('showoldpackages') ) { % $cgi->param('showoldpackages', 0); ( <% mt('hide old packages') |h %> ) % } | |
% $opt{cust_main} = $cust_main; % $opt{packages} = \@packages; % $opt{cust_location_cache} = {}; % if ( $conf->exists('cust_pkg-group_by_location') ) { <& locations.html, %opt &> % } else { # in this format, put all packages in one section <& /elements/table-grid.html &> <& packages/section.html, %opt &> |