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

📄 list.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1168217512',        'name' => 'admin/products/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 26 "template\en\default\admin\products\list.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 35 "template\en\default\admin\products\list.html.tmpl"    if ($stash->get('classification')) {    #line 31 "template\en\default\admin\products\list.html.tmpl"        # CAPTURE    $stash->set('classification_url_part', do {        my $output = '';    $output .=  "&amp;classification=";    #line 30 "template\en\default\admin\products\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['classification', 0, 'name', 0]);                &$_tt_filter($output);    };            $output;    });        #line 34 "template\en\default\admin\products\list.html.tmpl"        # CAPTURE    $stash->set('classification_title', do {        my $output = '';    $output .=  " \n    in classification '";    #line 33 "template\en\default\admin\products\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['classification', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'";        $output;    });        }        $output .=  "\n";    #line 0 "template\en\default\admin\products\list.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => ("Select product " . $stash->get('classification_title')) });    $output .=  "\n";    #line 44 "template\en\default\admin\products\list.html.tmpl"        # CAPTURE    $stash->set('edit_contentlink', do {        my $output = '';    $output .=  "\n  editproducts.cgi?action=edit&amp;product=%%name%%";    #line 43 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get('classification_url_part');        $output;    });        #line 48 "template\en\default\admin\products\list.html.tmpl"        # CAPTURE    $stash->set('delete_contentlink', do {        my $output = '';    $output .=  "\n  editproducts.cgi?action=del&amp;product=%%name%%";    #line 47 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get('classification_url_part');        $output;    });        #line 50 "template\en\default\admin\products\list.html.tmpl"        # CAPTURE    $stash->set('bug_count_contentlink', do {        my $output = '';    $output .=  "buglist.cgi?product=%%name%%";    #line 50 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get('classification_url_part');        $output;    });        $output .=  "\n\n";    #line 0 "template\en\default\admin\products\list.html.tmpl"    $stash->set('columns', [ { 'name' => 'name', 'heading' => 'Edit product...', 'contentlink' => $stash->get('edit_contentlink')  }, { 'name' => 'description', 'heading' => 'Description', 'allow_html_content' => 1  }, { 'name' => 'disallow_new', 'heading' => ("Open For New " . $stash->get(['terms', 0, 'Bugs', 0]))  }, { 'name' => 'votesperuser', 'heading' => 'Votes Per User', 'align' => 'right'  }, { 'name' => 'maxvotesperbug', 'heading' => ("Maximum Votes Per " . $stash->get(['terms', 0, 'Bug', 0])), 'align' => 'right'  }, { 'name' => 'votestoconfirm', 'heading' => 'Votes To Confirm', 'align' => 'right'  } ]);        $output .=  "\n";    #line 95 "template\en\default\admin\products\list.html.tmpl"    if ($stash->get('showbugcounts')) {    $output .=  "\n";    #line 0 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get(['columns', 0, 'push', [ { 'name' => 'bug_count', 'heading' => ($stash->get(['terms', 0, 'Bug', 0]) . " Count"), 'align' => 'right', 'contentlink' => $stash->get('bug_count_contentlink')  } ]]);    $output .=  "\n";    }        $output .=  "\n";    #line 97 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get(['columns', 0, 'push', [ { 'heading' => 'Action', 'content' => 'Delete', 'contentlink' => $stash->get('delete_contentlink')  } ]]);    $output .=  "\n";    #line 104 "template\en\default\admin\products\list.html.tmpl"    $stash->set(['overrides', 0, 'disallow_new', 0], [ { 'match_value' => '1', 'match_field' => 'disallow_new', 'override_content' => 1, 'content' => 'No'  }, { 'match_value' => 0, 'match_field' => 'disallow_new', 'override_content' => 1, 'content' => 'Yes'  } ]);        $output .=  " \n";    #line 118 "template\en\default\admin\products\list.html.tmpl"    $output .=  $context->process('admin/table.html.tmpl', { 'columns' => $stash->get('columns'), 'data' => $stash->get('products') });    $output .=  "\n";    #line 128 "template\en\default\admin\products\list.html.tmpl"    if (! $stash->get('showbugcounts')) {    $output .=  "\n\n  <p><a href=\"editproducts.cgi?showbugcounts=1";    #line 125 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get('classification_url_part');    $output .=  "\">\n      Redisplay table with ";    #line 126 "template\en\default\admin\products\list.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " counts (slower)</a></p>\n";    }        $output .=  "\n";    #line 130 "template\en\default\admin\products\list.html.tmpl"    $output .=  $context->process('admin/products/footer.html.tmpl', { 'no_edit_other_products_link' => 1 });    $output .=  "\n";    #line 134 "template\en\default\admin\products\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 + -