% foreach my $doc ( @articles ) {
% my ($b1, $b2) = $id && $id == $doc->id ? ('
','') : ('','');
-
<% $b1.$doc->name.$b2 %>
% }
% foreach my $doc ( @tests ) {
% my $file = $doc->get_image('file');
% my ($b1, $b2) = $id && $id == $doc->id ? ('
','') : ('','');
% if ( ref $file && exists $file->{filename} ) {
-
<% $doc->name %>
% } else {
-
<% $b1.$doc->name.$b2 %>
% }
% }