#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1019672863', 'name' => 'reports/keywords.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"; $output .= $context->process('global/header.html.tmpl', { 'title' => 'Bugzilla Keyword Descriptions' }); $output .= "\n"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('keywords'); 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->{'keyword'} = $value; if ($stash->get(['loop', 0, 'index', 0]) % 50 eq 0) { if ($stash->get(['loop', 0, 'index', 0]) ne 0) { $output .= "\n "; } $output .= "\n \n \n \n \n \n \n "; } $output .= " \n \n \n \n \n \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"; if ($stash->get(['keywords', 0, 'size', 0]) > 0) { $output .= "\n
NameDescriptionBugs
\n filter('html') || $context->throw($context->error); $output .= $stash->get(['keyword', 0, 'name', 0]); &$filter($output); }; $output .= "\">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['keyword', 0, 'name', 0]); &$filter($output); }; $output .= "\n "; $output .= $stash->get(['keyword', 0, 'description', 0]); $output .= ""; if ($stash->get(['keyword', 0, 'bugcount', 0]) > 0) { $output .= "\n filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['keyword', 0, 'name', 0]); &$filter($output); }; $output .= "\">"; $output .= $stash->get(['keyword', 0, 'bugcount', 0]); $output .= ""; } else { $output .= "\n none"; } $output .= "\n
"; } $output .= "\n"; if ($stash->get('caneditkeywords')) { $output .= "\n

\n Edit keywords.\n

"; } $output .= "\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });