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

📄 list-for-user.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1187931662',        'name' => 'bug/votes/list-for-user.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 39 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 60 "template\en\default\bug\votes\list-for-user.html.tmpl"    if (! $stash->get('header_done')) {    #line 42 "template\en\default\bug\votes\list-for-user.html.tmpl"        # CAPTURE    $stash->set('subheader', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['voting_user', 0, 'login', 0]);                &$_tt_filter($output);    };            $output;    });        #line 54 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('canedit')) {    #line 44 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('title', 'Change Votes');        #line 51 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('bug_id')) {    $output .=  "\n      ";    #line 48 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('onload', 'document.forms[\'voting_form\'].bug_'  . $stash->get('bug_id')  . '.select();document.forms[\'voting_form\'].bug_'  . $stash->get('bug_id')  . '.focus()');        }        }    else {    #line 53 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('title', 'Show Votes');        }        #line 55 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'style_urls' => [ 'skins/standard/voting.css' ] });    }    else {    $output .=  "\n  <hr>";    }        $output .=  "\n";    #line 70 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('votes_recorded')) {    $output .=  "\n  <p>\n    <font color=\"red\">\n      The changes to your votes have been saved.\n    </font>\n  </p>";    }    else {    $output .=  "\n  <br>";    }        $output .=  "\n";    #line 169 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['products', 0, 'size', 0])) {    $output .=  "\n  <form name=\"voting_form\" method=\"post\" action=\"votes.cgi\">\n    <input type=\"hidden\" name=\"action\" value=\"vote\">\n    <table cellspacing=\"4\">\n      <tr>\n        <td></td>\n        <th>Votes</th>\n        <th>";    #line 79 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  " #</th>\n        <th>Summary</th>\n      </tr>\n";    #line 83 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('onevoteproduct', 0);        #line 84 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('multivoteproduct', 0);        #line 142 "template\en\default\bug\votes\list-for-user.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->{'product'} = $_tt_value;    #line 90 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['product', 0, 'onevoteonly', 0])) {    #line 87 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('onevoteproduct', 1);        }    else {    #line 89 "template\en\default\bug\votes\list-for-user.html.tmpl"    $stash->set('multivoteproduct', 1);        }        $output .=  "\n        <tr>\n          <th>";    #line 92 "template\en\default\bug\votes\list-for-user.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 .=  "</th>\n          <td colspan=\"3\">";    #line 101 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['product', 0, 'maxperbug', 0]) < $stash->get(['product', 0, 'maxvotes', 0]) && $stash->get(['product', 0, 'maxperbug', 0]) > 1) {    $output .=  "\n              <font size=\"-1\">\n                (Note: only ";    #line 97 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['product', 0, 'maxperbug', 0]);    $output .=  " vote";    #line 98 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['product', 0, 'maxperbug', 0]) ne 1) {    $output .=  's';    }        $output .=  " allowed per ";    #line 98 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " in\n                this product.)\n              </font>";    }        $output .=  "\n          </td>\n        </tr>\n";    #line 131 "template\en\default\bug\votes\list-for-user.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['product', 0, 'bugs', 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->{'bug'} = $_tt_value;    $output .=  "\n          <tr ";    #line 107 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['bug', 0, 'id', 0]) eq $stash->get('bug_id') && $stash->get('canedit')) {    $output .=  " \n            class=\"bz_bug_being_voted_on\" ";    }        $output .=  ">\n            <td>";    #line 109 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['bug', 0, 'id', 0]) eq $stash->get('bug_id') && $stash->get('canedit')) {    $output .=  "Enter New Vote here &rarr;";    }        $output .=  "</td>\n            <td align=\"right\"><a name=\"vote_";    #line 110 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\">";    #line 121 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('canedit')) {    #line 118 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['product', 0, 'onevoteonly', 0])) {    $output .=  "\n                  <input type=\"checkbox\" name=\"";    #line 113 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\" value=\"1\"";    #line 114 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['bug', 0, 'count', 0])) {    $output .=  ' checked';    }        $output .=  " id=\"bug_";    #line 114 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\">";    }    else {    $output .=  "\n                  <input name=\"";    #line 116 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\" value=\"";    #line 116 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'count', 0]);    $output .=  "\"\n                         size=\"2\" id=\"bug_";    #line 117 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\">";    }        }    else {    #line 120 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'count', 0]);    }        $output .=  "\n            </a></td>\n            <td align=\"center\">";    #line 124 "template\en\default\bug\votes\list-for-user.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('none')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('bug_link', [ $stash->get(['bug', 0, 'id', 0]) ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'id', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        $output .=  "\n            </td>\n            <td>";    #line 127 "template\en\default\bug\votes\list-for-user.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'summary', 0]);                &$_tt_filter($output);    };        $output .=  "\n              (<a href=\"votes.cgi?action=show_bug&amp;bug_id=";    #line 128 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['bug', 0, 'id', 0]);    $output .=  "\">Show Votes</a>)\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\n        <tr>\n          <td></td>\n          <td colspan=\"3\">";    #line 135 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['product', 0, 'total', 0]);    $output .=  " vote";    #line 136 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get(['product', 0, 'total', 0]) ne 1) {    $output .=  's';    }        $output .=  " used out of ";    #line 136 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['product', 0, 'maxvotes', 0]);    $output .=  "\n            allowed.\n            <br>\n            <br>\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";    #line 158 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('canedit')) {    $output .=  "\n      <input type=\"submit\" value=\"Change My Votes\" id=\"change\">\n      <br>\n      <br>\n      To change your votes,";    #line 153 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('multivoteproduct')) {    $output .=  "\n        type in new numbers (using zero to mean no votes)";    #line 152 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('onevoteproduct')) {    $output .=  ' or ';    }        }        #line 156 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('onevoteproduct')) {    $output .=  "\n        change the checkbox";    }        $output .=  "\n      and then click <b>Change My Votes</b>.";    }        $output .=  "\n  </form>";    }    else {    $output .=  "\n  <p>";    #line 166 "template\en\default\bug\votes\list-for-user.html.tmpl"    if ($stash->get('canedit')) {    $output .=  "\n    You are";    }    else {    $output .=  "\n    This user is";    }        $output .=  "\n    currently not voting on any ";    #line 167 "template\en\default\bug\votes\list-for-user.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ".\n  </p>";    }        $output .=  "\n\n<p>\n  <a href=\"page.cgi?id=voting.html\">Help with voting</a>.\n</p>\n";    #line 175 "template\en\default\bug\votes\list-for-user.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 + -