#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.09
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1026177479',
'name' => 'bug/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";
# CAPTURE
$stash->set('filtered_desc', do {
my $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;
});
if (!($stash->get('header_done'))) {
$output .= $context->process('global/header.html.tmpl', { 'title' => ("Bug " . $stash->get(['bug', 0, 'bug_id', 0]) . " - " . $stash->get(['bug', 0, 'short_desc', 0])), 'h1' => ("Bugzilla Bug " . $stash->get(['bug', 0, 'bug_id', 0])), 'h2' => $stash->get('filtered_desc'), 'header_html' => $stash->get('navigation_links') });
}
$output .= "\n";
$output .= $context->process('bug/navigate.html.tmpl');
$output .= "\n\n
\n\n\n\n";
$output .= "\n\n\n \n \n \n Description :\n \n \n \n Opened: ";
$output .= $stash->get(['bug', 0, 'creation_ts', 0]);
$output .= "\n \n \n
\n \n";
$output .= $context->process('bug/comments.html.tmpl', { 'comments' => $stash->get(['bug', 0, 'comments', 0]) });
$output .= "\n \n \n";
$output .= $context->process('bug/navigate.html.tmpl');
$output .= "\n\n \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 => {
'select' => sub {
my $context = shift || die "template sub called without context\n";
my $stash = $context->stash;
my $output = '';
my $error;
eval { BLOCK: {
$output .= " \n \n get('selname');
$output .= "\">";
# FOREACH
do {
my ($value, $error, $oldloop);
my $list = $stash->get($stash->get('selname'));
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->{'x'} = $value;
$output .= "\n filter('html')
|| $context->throw($context->error);
$output .= $stash->get('x');
&$filter($output);
};
$output .= "\"";
if ($stash->get('x') eq $stash->get(['bug', 0, $stash->get('selname'), 0])) {
$output .= ' selected';
}
$output .= ">";
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('x');
&$filter($output);
};
$output .= "\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 ";
} };
if ($@) {
$error = $context->catch($@, \$output);
die $error unless $error->type eq 'return';
}
return $output;
},
'dependencies' => sub {
my $context = shift || die "template sub called without context\n";
my $stash = $context->stash;
my $output = '';
my $error;
eval { BLOCK: {
$output .= "\n Bug ";
$output .= $stash->get(['bug', 0, 'bug_id', 0]);
$output .= " ";
$output .= $stash->get(['dep', 0, 'title', 0]);
$output .= ": \n ";
# FOREACH
do {
my ($value, $error, $oldloop);
my $list = $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 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->{'depbug'} = $value;
$output .= $stash->get(['GetBugLink', [ $stash->get('depbug'), $stash->get('depbug') ]]);
$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 get(['dep', 0, 'fieldname', 0]);
$output .= "\" \n value=\"";
$output .= $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 0, 'join', [ ', ' ]]);
$output .= "\">\n ";
} };
if ($@) {
$error = $context->catch($@, \$output);
die $error unless $error->type eq 'return';
}
return $output;
},
},
});