#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1023231398', 'name' => 'attachment/create.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 .= "Create New Attachment for Bug #"; $output .= $stash->get('bugid'); $output; }); # CAPTURE $stash->set('h1', do { my $output = ''; $output .= "Create New Attachment 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: baseline; white-space: nowrap; } td { text-align: left; vertical-align: baseline; padding-bottom: 5px; } ', 'onload' => 'setContentTypeDisabledState();' }); $output .= "\n\n
\n get('bugid'); $output .= "\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
File:\n Enter the path to the file on your computer.
\n \n
Description:\n Describe the attachment briefly.
\n \n
\n
Content Type:\n If the attachment is a patch, check the box below.
\n patch

\n\n Otherwise, choose a method for determining the content type.
\n \n auto-detect
\n \n select from list:
\n \n enter manually: \n
Obsoletes:\n (optional) Check each existing attachment made obsolete by your new attachment.
"; if ($stash->get(['attachments', 0, 'size', 0])) { # 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 get(['attachment', 0, 'id', 0]); $output .= "\">\n get(['attachment', 0, 'id', 0]); $output .= "&action=edit\">"; $output .= $stash->get(['attachment', 0, 'id', 0]); $output .= ": "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['attachment', 0, 'description', 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; }; } else { $output .= "\n [no attachments can be made obsolete]"; } $output .= "\n
Comment:\n (optional) Add a comment about this attachment to the bug.
\n \n
 
\n\n
\n\n\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n\n\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });