#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1022141643', 'name' => 'attachment/show-multiple.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n"; # CAPTURE $stash->set('filtered_summary', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bugsummary'); &$filter($output); }; $output; }); $output .= $context->process('global/header.html.tmpl', { 'title' => ("View All Attachments for Bug #" . $stash->get('bugid')), 'h1' => ("View All Attachments for get('bugid') . "\">Bug #" . $stash->get('bugid') . ""), 'h2' => $stash->get('filtered_summary'), 'style' => ' th { text-align: right; vertical-align: top; } td { text-align: left; vertical-align: top; } td#info { text-align: right; vertical-align: top; } td#actions { text-align: right; vertical-align: bottom; } ' }); $output .= "\n\n
\n"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('attachments'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'a'} = $value; $output .= "\n\n
\n \n \n \n \n \n \n\n \n\n \n\n \n\n \n \n
\n Attachment #"; $output .= $stash->get(['a', 0, 'attachid', 0]); $output .= "\n
"; if ($stash->get(['a', 0, 'isobsolete', 0])) { $output .= "\n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'description', 0]); &$filter($output); }; $output .= ""; } else { # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'description', 0]); &$filter($output); }; } $output .= "\n "; if ($stash->get(['a', 0, 'ispatch', 0])) { $output .= "\n patch"; } else { # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'contenttype', 0]); &$filter($output); }; } $output .= "\n "; $output .= $stash->get(['a', 0, 'date', 0]); $output .= ""; if ($stash->get(['a', 0, 'statuses', 0, 'size', 0]) eq 0) { $output .= "\n none"; } else { # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['a', 0, 'statuses', 0]); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'s'} = $value; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('replace', [ '\s', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('s'); &$filter($output); }; &$filter($output); }; $output .= "
";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; } $output .= "\n
\n get(['a', 0, 'attachid', 0]); $output .= "&action=edit\">Edit \n
\n"; if ($stash->get(['a', 0, 'isviewable', 0])) { $output .= "\n "; } else { $output .= "\n

\n Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.\n get(['a', 0, 'attachid', 0]); $output .= "&action=view\">Download the attachment instead.\n

"; } $output .= "\n
\n\n

\n";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });