$tr->fclass('name')->namedlink($data->{id}, $data->{name});
$tr->fclass('name')->find('a')->edit_href(sub {$_ .= "?contest=$args{contest}"}) if $args{contest};
$tr->fclass('owner')->namedlink($data->{owner}, $data->{owner_name});
+ $tr->find('td')->attr(class => $tr->find('td')->attr('class').' warning') if $data->{private};
};
my $iter = sub {
my ($data, $div) = @_;
$tr->fclass('owner')->namedlink($data->{owner}, $data->{owner_name});
$tr->fclass('result_text')->replace_content($data->{result_text});
$tr->fclass('result_text')->attr(class => "r$data->{result}");
+ $tr->find('td')->attr(class => $tr->find('td')->attr('class').' warning') if $data->{private};
};
$tree->find('table')->find('tbody')->find('tr')->iter3($args{log}, $iter);
$args{next_page} ? $tree->fclass('next')->namedlink($args{next_page}, 'Next') : $tree->fclass('next')->detach;