% if ( ref $images && $images->{maxnumber} ) { % }
% foreach ( 1..$images->{maxnumber} ) { % my $img = $images->{"image_$_"}; % my $mini = $img->{mini}; % if ( ref $mini && exists $mini->{filename} && $photo_href ) {
% } elsif ( ref $img && exists $img->{filename} ) {
% } % }
% if ( $show_header ) {
<% $doc->name %>
% } % if ( $show_dtime || $doc->source ) {
\ % if ($show_dtime) { % my $date = Contenido::DateTime::new ( postgres => $doc->dtime ); <% $date->dmy('.').sprintf(" %02d:%02d", $date->hour, $date->min).($doc->source ? ' | ' : '') %> % } % if ( $doc->source ) { <% $a1.$doc->source.$a2 %> % }
% }
<& /inc/text_format.msn, doc => $doc &>
<%args> $doc => undef $show_header => undef $show_dtime => undef $photo_href => 1 <%init> return unless ref $doc; my $prj = $request->{project}; my $images = $doc->get_image('pictures'); my ($a1, $a2) = $doc->url ? ('','') : ('','');