Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl. Used template __odd__ variable in aqbookfund.tmpl.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
scalar(@results) - 1,
);
- my $toggle = 0;
foreach my $result (@results[$first .. $last]) {
push(
@loop,
{
%{$result},
- toggle => $toggle++%2,
branchname =>
$branches->{ $result->{branchcode} }->{branchname},
has_budgets => defined $nb_budgets_of{ $result->{bookfundid} },
</tr>
<!-- TMPL_LOOP name="bookfund" -->
- <!-- TMPL_IF NAME="toggle" -->
+ <!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
- <!-- /TMPL_IF -->
+ <!-- /TMPL_UNLESS -->
<td>
<!-- TMPL_VAR name="bookfundid" -->
</td>