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

📄 list.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1141251024',        '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 $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 29 "template\en\default\admin\components\list.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 32 "template\en\default\admin\components\list.html.tmpl"        # CAPTURE    $stash->set('title', do {        my $output = '';    $output .=  "Select component of product\n                   '";    #line 32 "template\en\default\admin\components\list.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;    });        #line 33 "template\en\default\admin\components\list.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') });    $output .=  "\n";    #line 38 "template\en\default\admin\components\list.html.tmpl"        # CAPTURE    $stash->set('edit_contentlink', do {        my $output = '';    $output .=  "editcomponents.cgi?action=edit&amp;product=";    #line 38 "template\en\default\admin\components\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "&amp;component=%%name%%";        $output;    });        #line 40 "template\en\default\admin\components\list.html.tmpl"        # CAPTURE    $stash->set('delete_contentlink', do {        my $output = '';    $output .=  "editcomponents.cgi?action=del&amp;product=";    #line 40 "template\en\default\admin\components\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "&amp;component=%%name%%";        $output;    });        #line 42 "template\en\default\admin\components\list.html.tmpl"        # CAPTURE    $stash->set('bug_count_contentlink', do {        my $output = '';    $output .=  "buglist.cgi?component=%%name%%&amp;product=";    #line 42 "template\en\default\admin\components\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };            $output;    });        $output .=  "\n\n";    #line 45 "template\en\default\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 70 "template\en\default\admin\components\list.html.tmpl"    if ($stash->get(['Param', [ 'useqacontact' ]])) {    $output .=  "\n";    #line 65 "template\en\default\admin\components\list.html.tmpl"    $output .=  $stash->get(['columns', 0, 'push', [ { 'name' => 'initialqacontact', 'heading' => 'QA Contact'  } ]]);    $output .=  "\n";    }        $output .=  "\n";    #line 81 "template\en\default\admin\components\list.html.tmpl"    if ($stash->get('showbugcounts')) {    $output .=  "\n";    #line 0 "template\en\default\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 83 "template\en\default\admin\components\list.html.tmpl"    $output .=  $stash->get(['columns', 0, 'push', [ { 'heading' => 'Action', 'content' => 'Delete', 'contentlink' => $stash->get('delete_contentlink')  } ]]);    $output .=  "\n\n";    #line 90 "template\en\default\admin\components\list.html.tmpl"    $stash->set(['overrides', 0, 'initialowner', 0], [ ]);        #line 91 "template\en\default\admin\components\list.html.tmpl"    $stash->set(['overrides', 0, 'initialqacontact', 0], [ ]);        $output .=  "\n";    #line 108 "template\en\default\admin\components\list.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->{'component'} = $_tt_value;    #line 94 "template\en\default\admin\components\list.html.tmpl"    $output .=  $stash->get(['overrides', 0, 'initialowner', 0, 'push', [ { 'match_value' => $stash->get(['component', 0, 'name', 0]), 'match_field' => 'name', 'override_content' => 1, 'content' => $stash->get(['component', 0, 'default_assignee', 0, 'login', 0])  } ]]);    #line 101 "template\en\default\admin\components\list.html.tmpl"    $output .=  $stash->get(['overrides', 0, 'initialqacontact', 0, 'push', [ { 'match_value' => $stash->get(['component', 0, 'name', 0]), 'match_field' => 'name', 'override_content' => 1, 'content' => $stash->get(['component', 0, 'default_qa_contact', 0, 'login', 0])  } ]]);;                ($_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";    #line 110 "template\en\default\admin\components\list.html.tmpl"    $output .=  $context->process('admin/table.html.tmpl', { 'columns' => $stash->get('columns'), 'data' => $stash->get(['product', 0, 'components', 0]), 'overrides' => $stash->get('overrides') });    $output .=  "\n\n<p><a href=\"editcomponents.cgi?action=add&amp;product=";    #line 116 "template\en\default\admin\components\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\">Add</a>\n    a new component to product '";    #line 117 "template\en\default\admin\components\list.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 .=  "'</p>\n";    #line 124 "template\en\default\admin\components\list.html.tmpl"    if (! $stash->get('showbugcounts')) {    $output .=  "\n\n  <p><a href=\"editcomponents.cgi?product=";    #line 121 "template\en\default\admin\components\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "&amp;showbugcounts=1\">\n      Redisplay table with ";    #line 122 "template\en\default\admin\components\list.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " counts (slower)</a></p>\n";    }        $output .=  "\n";    #line 126 "template\en\default\admin\components\list.html.tmpl"    $output .=  $context->process('admin/components/footer.html.tmpl', { 'no_edit_other_components_link' => 1 });    $output .=  "\n";    #line 130 "template\en\default\admin\components\list.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

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