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

📄 list-for-bug.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1161115118',        'name' => 'bug/votes/list-for-bug.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\bug\votes\list-for-bug.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 0 "template\en\default\bug\votes\list-for-bug.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Show Votes', 'subheader' => ($stash->get(['terms', 0, 'Bug', 0]) . " <a href=\"show_bug.cgi?id=" . $stash->get('bug_id') . "\">" . $stash->get('bug_id') . "</a>") });    $output .=  "\n";    #line 36 "template\en\default\bug\votes\list-for-bug.html.tmpl"    $stash->set('total', 0);        $output .=  "\n<table cellspacing=\"4\">\n  <tr>\n    <th>Who</th>\n    <th>Number of votes</th>\n  </tr>\n";    #line 55 "template\en\default\bug\votes\list-for-bug.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('users');                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->{'voter'} = $_tt_value;    #line 44 "template\en\default\bug\votes\list-for-bug.html.tmpl"    $stash->set('total', $stash->get('total') + $stash->get(['voter', 0, 'vote_count', 0]));        $output .=  "\n    <tr>\n      <td>\n        <a href=\"votes.cgi?action=show_user&amp;user=";    #line 47 "template\en\default\bug\votes\list-for-bug.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['voter', 0, 'login_name', 0]);                &$_tt_filter($output);    };        $output .=  "\">";    #line 48 "template\en\default\bug\votes\list-for-bug.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['voter', 0, 'login_name', 0]);                &$_tt_filter($output);    };        $output .=  "\n        </a>\n      </td>\n      <td align=\"right\">";    #line 52 "template\en\default\bug\votes\list-for-bug.html.tmpl"    $output .=  $stash->get(['voter', 0, 'vote_count', 0]);    $output .=  "\n      </td>\n    </tr>";;                ($_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</table>\n\n<p>Total votes: ";    #line 58 "template\en\default\bug\votes\list-for-bug.html.tmpl"    $output .=  $stash->get('total');    $output .=  "</p>\n";    #line 60 "template\en\default\bug\votes\list-for-bug.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 + -