blob: 756b2d5e0826b7706eabdc4cfbd205aad09f0a49 [file] [log] [blame]
#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.15
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1138010588',
'name' => 'admin/components/list.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";
$output .= "\n";
#line 36 "template/en/custom/admin/components/list.html.tmpl"
# USE
$stash->set('Bugzilla',
$context->plugin('Bugzilla'));
#line 37 "template/en/custom/admin/components/list.html.tmpl"
$stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0]));
$output .= "\n";
#line 39 "template/en/custom/admin/components/list.html.tmpl"
$output .= $context->process('global/variables.none.tmpl');
$output .= "\n";
#line 42 "template/en/custom/admin/components/list.html.tmpl"
# CAPTURE
$stash->set('title', do {
my $output = '';
$output .= "Select component of product\n '";
#line 42 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "'";
$output;
});
#line 43 "template/en/custom/admin/components/list.html.tmpl"
$output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') });
$output .= "\n";
#line 48 "template/en/custom/admin/components/list.html.tmpl"
# CAPTURE
$stash->set('edit_contentlink', do {
my $output = '';
$output .= "editcomponents.cgi?action=edit&product=";
#line 48 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "&component=%%name%%";
$output;
});
#line 50 "template/en/custom/admin/components/list.html.tmpl"
# CAPTURE
$stash->set('delete_contentlink', do {
my $output = '';
$output .= "editcomponents.cgi?action=del&product=";
#line 50 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "&component=%%name%%";
$output;
});
#line 52 "template/en/custom/admin/components/list.html.tmpl"
# CAPTURE
$stash->set('bug_count_contentlink', do {
my $output = '';
$output .= "buglist.cgi?component=%%name%%&product=";
#line 52 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output;
});
$output .= "\n\n";
#line 55 "template/en/custom/admin/components/list.html.tmpl"
$stash->set('columns', [ { 'name' => 'name', 'heading' => 'Edit component...', 'contentlink' => $stash->get('edit_contentlink') }, { 'name' => 'description', 'heading' => 'Description', 'allow_html_content' => 1 }, { 'name' => 'initialowner', 'heading' => 'Default Assignee' } ]);
$output .= "\n";
#line 80 "template/en/custom/admin/components/list.html.tmpl"
if ($stash->get(['Param', [ 'useqacontact' ]])) {
$output .= "\n";
#line 75 "template/en/custom/admin/components/list.html.tmpl"
$output .= $stash->get(['columns', 0, 'push', [ { 'name' => 'initialqacontact', 'heading' => 'QA Contact' } ]]);
$output .= "\n";
}
$output .= "\n";
#line 91 "template/en/custom/admin/components/list.html.tmpl"
if ($stash->get('showbugcounts')) {
$output .= "\n";
#line 0 "template/en/custom/admin/components/list.html.tmpl"
$output .= $stash->get(['columns', 0, 'push', [ { 'name' => 'bug_count', 'heading' => ('' . $stash->get(['terms', 0, 'Bugs', 0])), 'align' => 'right', 'contentlink' => $stash->get('bug_count_contentlink') } ]]);
$output .= "\n";
}
$output .= "\n";
#line 93 "template/en/custom/admin/components/list.html.tmpl"
$output .= $stash->get(['columns', 0, 'push', [ { 'heading' => 'Action', 'content' => 'Delete', 'contentlink' => $stash->get('delete_contentlink') } ]]);
$output .= "\n";
#line 99 "template/en/custom/admin/components/list.html.tmpl"
$output .= $context->process('admin/table.html.tmpl', { 'columns' => $stash->get('columns'), 'data' => $stash->get('components'), 'footer' => $stash->get('footer_row') });
$output .= "\n\n<p><a href=\"editcomponents.cgi?action=add&amp;product=";
#line 105 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('url_quote')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "\">Add</a>\n a new component to product '";
#line 106 "template/en/custom/admin/components/list.html.tmpl"
# FILTER
$output .= do {
my $output = '';
my $filter = $context->filter('html')
|| $context->throw($context->error);
$output .= $stash->get('product');
&$filter($output);
};
$output .= "'</p>\n";
#line 113 "template/en/custom/admin/components/list.html.tmpl"
if (! $stash->get('showbugcounts')) {
$output .= "\n\n<p><a href=\"editcomponents.cgi?showbugcounts=1&amp;";
#line 110 "template/en/custom/admin/components/list.html.tmpl"
$output .= $stash->get(['cgi', 0, 'query_string', 0]);
$output .= "\">\n Redisplay table with ";
#line 111 "template/en/custom/admin/components/list.html.tmpl"
$output .= $stash->get(['terms', 0, 'bug', 0]);
$output .= " counts (slower)</a></p>\n";
}
$output .= "\n";
#line 115 "template/en/custom/admin/components/list.html.tmpl"
$output .= $context->process('admin/components/footer.html.tmpl', { 'no_edit_other_components_link' => 1 });
$output .= "\n";
#line 119 "template/en/custom/admin/components/list.html.tmpl"
$output .= $context->process('global/footer.html.tmpl');
$output .= "\n";
} };
if ($@) {
$error = $context->catch($@, \$output);
die $error unless $error->type eq 'return';
}
return $output;
},
DEFBLOCKS => {
},
});