⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 components.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1074451170',        'name' => 'reports/components.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 32 "template\en\default\reports\components.html.tmpl"        # CAPTURE    $stash->set('filtered_product', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('product');                &$filter($output);    };            $output;    });        #line 0 "template\en\default\reports\components.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => ("Components for " . $stash->get('product')), 'h2' => $stash->get('filtered_product') });    $output .=  "\n";    #line 37 "template\en\default\reports\components.html.tmpl"    if ($stash->get(['Param', [ 'useqacontact' ]])) {    #line 37 "template\en\default\reports\components.html.tmpl"    $stash->set('numcols', 3);        }    else {    #line 37 "template\en\default\reports\components.html.tmpl"    $stash->set('numcols', 2);        }        $output .=  "\n";    #line 64 "template\en\default\reports\components.html.tmpl"    if ($stash->get(['components', 0, 'size', 0]) eq 0) {    $output .=  "\n  This product has no components.";    }    else {    $output .=  "\n  <table>\n    <tr>\n      <th align=\"left\">Component</th>\n      <th align=\"left\">Default Owner</th>";    #line 52 "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 56 "template\en\default\reports\components.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('components');                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->{'comp'} = $value;    #line 56 "template\en\default\reports\components.html.tmpl"    $output .=  $context->include('describe_comp');;                ($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    <tr>\n      <td colspan=\"";    #line 58 "template\en\default\reports\components.html.tmpl"    $output .=  $stash->get('numcols');    $output .=  "\">\n        <hr>\n      </td>\n    </tr>\n  </table>";    }        $output .=  "\n";    #line 67 "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 ($@) {            $error = $context->catch($@, \$output);            die $error unless $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 $error;                        eval { BLOCK: {        $output .=  "\n  <tr>\n    <td colspan=\"";        #line 76 "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 82 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'name', 0]);                        &$filter($output);        };                $output .=  "\">";        #line 82 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'name', 0]);                        &$filter($output);        };                $output .=  "</a>\n    </td>\n    <td>\n      <a href=\"mailto:";        #line 85 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'initialowner', 0]);                        &$filter($output);        };                #line 85 "template\en\default\reports\components.html.tmpl"        $output .=  $stash->get(['Param', [ 'emailsuffix' ]]);        $output .=  "\">";        #line 87 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'initialowner', 0]);                        &$filter($output);        };                $output .=  "</a>\n    </td>";        #line 97 "template\en\default\reports\components.html.tmpl"        if ($stash->get(['Param', [ 'useqacontact' ]])) {        $output .=  "\n      <td>\n        <a href=\"mailto:";        #line 92 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'initialqacontact', 0]);                        &$filter($output);        };                #line 92 "template\en\default\reports\components.html.tmpl"        $output .=  $stash->get(['Param', [ 'emailsuffix' ]]);        $output .=  "\">";        #line 94 "template\en\default\reports\components.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['comp', 0, 'initialqacontact', 0]);                        &$filter($output);        };                $output .=  "</a>\n      </td>";        }                $output .=  "\n  </tr>\n  <tr>\n    <td colspan=\"";        #line 100 "template\en\default\reports\components.html.tmpl"        $output .=  $stash->get('numcols') - 1;        $output .=  "\">";        #line 102 "template\en\default\reports\components.html.tmpl"        $output .=  $stash->get(['comp', 0, 'description', 0]);        $output .=  "\n    </td>\n  </tr>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -