#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217120', 'name' => 'bug/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"; $output .= $context->process('global/header.html.tmpl', { 'title' => 'Full Text Bug Listing' }); $output .= "\n"; if ($stash->get(['bugs', 0, 'first', 0])) { # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('bugs'); 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->{'bug'} = $value; $output .= $context->process('bug_display');; ($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

\n You'd have more luck if you gave me some bug numbers.\n

"; } $output .= "\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'bug_display' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n \n
\n \n Bug "; $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= " - "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$filter($output); }; $output .= "\n \n
\n\n \n \n "; $output .= $context->process('cell', { 'attr' => { 'description' => 'Product', 'name' => 'product' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Version', 'name' => 'version' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Platform', 'name' => 'rep_platform' } }); $output .= "\n \n \n "; $output .= $context->process('cell', { 'attr' => { 'description' => 'OS/Version', 'name' => 'op_sys' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Status', 'name' => 'bug_status' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Severity', 'name' => 'bug_severity' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Priority', 'name' => 'priority' } }); $output .= "\n \n \n "; $output .= $context->process('cell', { 'attr' => { 'description' => 'Resolution', 'name' => 'resolution' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Assigned To', 'name' => 'assigned_to' } }); $output .= $context->process('cell', { 'attr' => { 'description' => 'Reported By', 'name' => 'reporter' } }); if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= $context->process('cell', { 'attr' => { 'description' => 'QA Contact', 'name' => 'qa_contact' } }); } $output .= "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n "; if ($stash->get('use_keywords')) { $output .= "\n \n \n "; } $output .= "\n"; if ($stash->get(['Param', [ 'usestatuswhiteboard' ]])) { $output .= "\n \n \n "; } $output .= "\n\n \n \n \n
\n Bug#:\n get(['bug', 0, 'bug_id', 0]); $output .= "\">"; $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\n
\n Component: "; $output .= $stash->get(['bug', 0, 'component', 0]); $output .= "\n "; if ($stash->get(['Param', [ 'usetargetmilestone' ]])) { $output .= "\n Target Milestone: "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'target_milestone', 0]); &$filter($output); }; } $output .= "\n
\n URL: \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_file_loc', 0]); &$filter($output); }; $output .= "\">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_file_loc', 0]); &$filter($output); }; $output .= " \n
\n Summary: "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$filter($output); }; $output .= "\n
\n Keywords:  "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'keywords', 0]); &$filter($output); }; $output .= "\n
\n Status Whiteboard: "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'status_whiteboard', 0]); &$filter($output); }; $output .= "\n
\n Description:\n
\n"; $output .= $context->process('bug/comments.html.tmpl', { 'comments' => $stash->get(['bug', 0, 'comments', 0]) }); $output .= "\n \n
"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'cell' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n \n "; $output .= $stash->get(['attr', 0, 'description', 0]); $output .= ": "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, $stash->get(['attr', 0, 'name', 0]), 0]); &$filter($output); }; $output .= "\n "; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, }, });