#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1019156190', 'name' => 'attachment/list.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\n
\n\n \n \n \n \n \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->{'attachment'} = $value; $output .= "\n \n \n\n \n\n \n\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\n \n \n \n \n
AttachmentTypeModifiedStatusActions
"; if ($stash->get(['attachment', 0, 'isobsolete', 0])) { $output .= "\n get(['attachment', 0, 'attachid', 0]); $output .= "&action=view\">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['attachment', 0, 'description', 0]); &$filter($output); }; $output .= ""; } else { $output .= "\n get(['attachment', 0, 'attachid', 0]); $output .= "&action=view\">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['attachment', 0, 'description', 0]); &$filter($output); }; $output .= " "; } $output .= "\n "; if ($stash->get(['attachment', 0, 'ispatch', 0])) { $output .= "\n patch"; } else { # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['attachment', 0, 'contenttype', 0]); &$filter($output); }; } $output .= "\n "; $output .= $stash->get(['attachment', 0, 'date', 0]); $output .= ""; if ($stash->get(['attachment', 0, 'statuses', 0, 'size', 0]) eq 0) { $output .= "\n none"; } else { # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['attachment', 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
"; if ($stash->get(['attachment', 0, 'canedit', 0])) { $output .= "\n get(['attachment', 0, 'attachid', 0]); $output .= "&action=edit\">Edit"; } else { $output .= "\n None"; } $output .= "\n
\n get('bugid'); $output .= "&action=enter\">Create a New Attachment (proposed patch, testcase, etc.)\n \n get('bugid'); $output .= "&action=viewall\">View All\n
\n
\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });