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

📄 list.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1160863332',        'name' => 'admin/flag-type/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";    #line 22 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 24 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('global/js-products.html.tmpl');    $output .=  "\n";    #line 26 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Administer Flag Types', 'style' => '        table#flag_types_bugs tr th,        table#flag_types_attachments tr th { text-align: left; }        .inactive { color: #787878; }        .multiplicable { display: block; }      ', 'onload' => 'selectProduct(document.forms[0], \'product\', \'component\', \'__All__\');', 'javascript_urls' => [ 'productmenu.js' ] });    $output .=  "\n\n<p>\n  Flags are markers that identify whether ";    #line 39 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $stash->get(['terms', 0, 'abug', 0]);    $output .=  " or attachment has been granted\n  or denied some status.  Flags appear in the UI as a name and a status symbol\n  (\"+\" for granted, \"-\" for denied, and \"?\" for statuses requested by users).\n</p>\n\n<p>\n  For example, you might define a \"review\" status for users to request review\n  for their patches.  When a patch writer requests review, the string \"review?\"\n  will appear in the attachment.  When a patch reviewer reviews the patch,\n  either the string \"review+\" or the string \"review-\" will appear in the patch,\n  depending on whether the patch passed or failed review.\n</p>\n\n<p>\n  You can restrict the list of flag types to those available for a given product\n  and component. If a product is selected with no component, only flag types\n  which are available to at least one component of the product are shown.\n</p>\n\n<form action=\"editflagtypes.cgi\" method=\"get\">\n  <table>\n    <tr>\n      <th><label for=\"product\">Product:</label></th>\n      <td>\n        <select name=\"product\" onchange=\"selectProduct(this.form, 'product', 'component', '__Any__');\">\n          <option value=\"\">__Any__</option>";    #line 69 "template\en\default\admin\flag-type\list.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('products');                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->{'prod'} = $_tt_value;    $output .=  "\n            <option value=\"";    #line 66 "template\en\default\admin\flag-type\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['prod', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    #line 67 "template\en\default\admin\flag-type\list.html.tmpl"    if ($stash->get('selected_product') eq $stash->get(['prod', 0, 'name', 0])) {    $output .=  ' selected';    }        $output .=  ">";    #line 68 "template\en\default\admin\flag-type\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['prod', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "</option>";;                ($_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        </select>\n      </td>\n      <th><label for=\"component\">Component:</label></th>\n      <td>\n        <select name=\"component\">\n          <option value=\"\">__Any__</option>";    #line 80 "template\en\default\admin\flag-type\list.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('components');                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;    $output .=  "\n            <option value=\"";    #line 77 "template\en\default\admin\flag-type\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('comp');                &$_tt_filter($output);    };        $output .=  "\"";    #line 78 "template\en\default\admin\flag-type\list.html.tmpl"    if ($stash->get('selected_component') eq $stash->get('comp')) {    $output .=  ' selected';    }        $output .=  ">";    #line 79 "template\en\default\admin\flag-type\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('comp');                &$_tt_filter($output);    };        $output .=  "</option>";;                ($_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        </select>\n      </td>\n      <td><input type=\"submit\" id=\"submit\" value=\"Filter\"></td>\n    </tr>\n  </table>\n</form>\n\n<h3>Flag Types for ";    #line 88 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugs', 0]);    $output .=  "</h3>\n";    #line 90 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('display_flag_types', { 'types' => $stash->get('bug_types'), 'types_id' => 'bugs' });    $output .=  "\n\n<p>\n  <a href=\"editflagtypes.cgi?action=enter&amp;target_type=bug\">Create Flag Type for ";    #line 93 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugs', 0]);    $output .=  "</a>\n</p>\n\n<h3>Flag Types for Attachments</h3>\n";    #line 98 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('display_flag_types', { 'types' => $stash->get('attachment_types'), 'types_id' => 'attachments' });    $output .=  "\n\n<p>\n  <a href=\"editflagtypes.cgi?action=enter&amp;target_type=attachment\">Create Flag Type For Attachments</a>\n</p>\n";    #line 104 "template\en\default\admin\flag-type\list.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n\n";        $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },

⌨️ 快捷键说明

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