?? components.html.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1160857614', 'name' => 'reports/components.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 28 "template\en\default\reports\components.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "\n Components for "; #line 27 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'name', 0]); &$_tt_filter($output); }; $output; }); $output .= "\n"; #line 30 "template\en\default\reports\components.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') }); $output .= "\n"; #line 36 "template\en\default\reports\components.html.tmpl" if ($stash->get(['Param', [ 'useqacontact' ]])) { #line 33 "template\en\default\reports\components.html.tmpl" $stash->set('numcols', 3); } else { #line 35 "template\en\default\reports\components.html.tmpl" $stash->set('numcols', 2); } $output .= "\n\n<p>"; #line 39 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html_light') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\n</p>\n\n<table>\n <tr>\n <th align=\"left\">Component</th>\n <th align=\"left\">Default Assignee</th>"; #line 48 "template\en\default\reports\components.html.tmpl" if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= "\n <th align=\"left\">Default QA Contact</th>"; } $output .= "\n </tr>\n"; #line 53 "template\en\default\reports\components.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['product', 0, 'components', 0]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'comp'} = $_tt_value; #line 52 "template\en\default\reports\components.html.tmpl" $output .= $context->include('describe_comp');; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n <tr>\n <td colspan=\""; #line 55 "template\en\default\reports\components.html.tmpl" $output .= $stash->get('numcols'); $output .= "\">\n <hr>\n </td>\n </tr>\n</table>\n"; #line 61 "template\en\default\reports\components.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'describe_comp' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <tr>\n <td colspan=\""; #line 69 "template\en\default\reports\components.html.tmpl" $output .= $stash->get('numcols'); $output .= "\">\n <hr>\n </td>\n </tr>\n <tr>\n <td rowspan=\"2\">\n <a name=\""; #line 75 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 75 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "</a>\n </td>\n <td>\n <a href=\"mailto:"; #line 78 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'default_assignee', 0, 'email', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 79 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'default_assignee', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "</a>\n </td>"; #line 86 "template\en\default\reports\components.html.tmpl" if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= "\n <td>\n <a href=\"mailto:"; #line 83 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'default_qa_contact', 0, 'email', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 84 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'default_qa_contact', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "</a>\n </td>"; } $output .= "\n </tr>\n <tr>\n <td colspan=\""; #line 89 "template\en\default\reports\components.html.tmpl" $output .= $stash->get('numcols') - 1; $output .= "\">"; #line 90 "template\en\default\reports\components.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html_light') || $context->throw($context->error); $output .= $stash->get(['comp', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\n </td>\n </tr>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -