#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1021271060', 'name' => 'bug/dependency-tree.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' => ("Dependency tree for Bug " . $stash->get('bugid')), 'h1' => ("Dependency tree for get('bugid') . "\">bug " . $stash->get('bugid') . ""), 'style' => 'strike { background-color: #d9d9d9; color: #000000; }' }); $output .= "\n"; $output .= $context->process('depthControlToolbar'); $output .= "\n\n"; $output .= "\n

"; $output .= $stash->get('hide_resolved') ? 'Open b' : 'B'; $output .= "ugs that get('bugid'); $output .= "\">bug "; $output .= $stash->get('bugid'); $output .= " depends on

"; if ($stash->get(['dependson_ids', 0, 'size', 0]) > 0) { $output .= "\n ("; if ($stash->get('maxdepth')) { $output .= "Up to "; $output .= $stash->get('maxdepth'); $output .= " level"; if ($stash->get('maxdepth') > 1) { $output .= 's'; } $output .= " deep | "; } $output .= "\n get(['dependson_ids', 0, 'join', [ ',' ]]); $output .= "\">view as bug list"; if ($stash->get('canedit') && $stash->get(['dependson_ids', 0, 'size', 0]) > 1) { $output .= "\n | get(['dependson_ids', 0, 'join', [ ',' ]]); $output .= "&tweak=1\">change several"; } $output .= ")"; $output .= $context->include('display_tree', { 'tree' => $stash->get('dependson_tree'), 'bug_id' => $stash->get('bugid') }); } else { $output .= "\n \n

None

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

"; $output .= $stash->get('hide_resolved') ? 'Open b' : 'B'; $output .= "ugs that get('bugid'); $output .= "\">bug "; $output .= $stash->get('bugid'); $output .= " blocks

"; if ($stash->get(['blocked_ids', 0, 'size', 0]) > 0) { $output .= "\n ("; if ($stash->get('maxdepth')) { $output .= "Up to "; $output .= $stash->get('maxdepth'); $output .= " level"; if ($stash->get('maxdepth') > 1) { $output .= 's'; } $output .= " deep | "; } $output .= "\n get(['blocked_ids', 0, 'join', [ ',' ]]); $output .= "\">view as bug list"; if ($stash->get('canedit') && $stash->get(['blocked_ids', 0, 'size', 0]) > 1) { $output .= "\n | get(['blocked_ids', 0, 'join', [ ',' ]]); $output .= "&tweak=1\">change several"; } $output .= ")"; $output .= $context->include('display_tree', { 'tree' => $stash->get('blocked_tree'), 'bug_id' => $stash->get('bugid') }); } else { $output .= "\n \n

None

"; } $output .= "\n"; $output .= $context->process('depthControlToolbar'); $output .= "\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\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 => { 'depthControlToolbar' => 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 "; $output .= "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n \n
\n
\n get('bugid'); $output .= "\">"; if ($stash->get('maxdepth')) { $output .= "\n get('maxdepth'); $output .= "\">"; } $output .= "\n get('hide_resolved') ? 0 : 1; $output .= "\">\n get('hide_resolved') ? 'Show' : 'Hide'; $output .= " Resolved\">\n
\n
\n Max Depth:\n \n  \n \n
\n "; $output .= "\n get('realdepth') < 2 || $stash->get('maxdepth') eq 1 ? 'disabled' : ''; $output .= ">\n get('bugid'); $output .= "\">\n \n get('hide_resolved'); $output .= "\">\n
\n
\n
\n "; $output .= "\n get('bugid'); $output .= "\">\n get('maxdepth') eq 1 ? 1 : ($stash->get('maxdepth') ? $stash->get('maxdepth') - 1 : $stash->get('realdepth') - 1); $output .= "\">\n get('hide_resolved'); $output .= "\">\n get('realdepth') < 2 || ($stash->get('maxdepth') && $stash->get('maxdepth') < 2) ? 'disabled' : ''; $output .= ">\n
\n
\n
\n "; $output .= "\n get('maxdepth') > 0 && $stash->get('maxdepth') <= $stash->get('realdepth') ? $stash->get('maxdepth') : ''; $output .= "\">\n get('bugid'); $output .= "\">\n get('hide_resolved'); $output .= "\">\n \n
\n
\n
\n "; $output .= "\n get('bugid'); $output .= "\">"; if ($stash->get('maxdepth')) { $output .= "\n get('maxdepth') + 1; $output .= "\">"; } $output .= "\n get('hide_resolved'); $output .= "\">\n get('realdepth') < 2 || ! $stash->get('maxdepth') || $stash->get('maxdepth') >= $stash->get('realdepth') ? 'disabled' : ''; $output .= ">\n
\n
\n
\n "; $output .= "\n get('bugid'); $output .= "\">\n get('hide_resolved'); $output .= "\">\n get('maxdepth') eq 0 || $stash->get('maxdepth') eq $stash->get('realdepth') ? 'disabled' : ''; $output .= ">\n
\n
"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'display_tree' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $stash->set(['tree', 0, $stash->get('bug_id'), 0, 'seen', 0], 1); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, }, });