#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217118', 'name' => 'attachment/edit.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"; # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Edit Attachment #"; $output .= $stash->get('attachid'); $output .= " for Bug #"; $output .= $stash->get('bugid'); $output; }); # CAPTURE $stash->set('h1', do { my $output = ''; $output .= "Edit Attachment #"; $output .= $stash->get('attachid'); $output .= " for get('bugid'); $output .= "\">Bug #"; $output .= $stash->get('bugid'); $output .= ""; $output; }); # CAPTURE $stash->set('h2', 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 .= "\n"; $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'h1' => $stash->get('h1'), 'h2' => $stash->get('h2'), '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; } td#noview { text-align: left; vertical-align: center; } ' }); $output .= "\n\n\n\n
\n get('attachid'); $output .= "\">\n \n \n\n \n\n \n \n"; if ($stash->get('isviewable')) { $output .= "\n "; } else { $output .= "\n "; } $output .= "\n\n \n\n
\n \n Description:
\n
\n\n MIME Type:
\n filter('html') || $context->throw($context->error); $output .= $stash->get('contenttype'); &$filter($output); }; $output .= "\">
\n\n Flags:
\n get('ispatch')) { $output .= ' checked'; } $output .= ">patch\n get('isobsolete')) { $output .= ' checked'; } $output .= ">obsolete
\n"; if ($stash->get(['statusdefs', 0, 'size', 0])) { $output .= "\n Status:
"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('statusdefs'); 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->{'def'} = $value; $output .= "\n get(['def', 0, 'id', 0]); $output .= "\""; if ($stash->get(['statuses', 0, $stash->get(['def', 0, 'id', 0]), 0])) { $output .= ' checked'; } $output .= ">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['def', 0, 'name', 0]); &$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
\n Comment (on the bug):
\n
\n
\n\n \n\n
\n
\n \n \n \n \n

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

\n
\n\n Attachments on this Bug:"; # 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; if ($stash->get('a') eq $stash->get('attachid')) { $output .= "\n #"; $output .= $stash->get('a'); } else { $output .= "\n get('a'); $output .= "&action=edit\">#"; $output .= $stash->get('a'); $output .= ""; } if (!($stash->get(['loop', 0, 'last', 0]))) { $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
\n\n
\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 => { }, });