?? confirm-user-match.html.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1175721784', 'name' => 'global/confirm-user-match.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\n"; #line 40 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 70 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get('matchsuccess') eq 1) { #line 43 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Confirm Match' }); $output .= "\n"; #line 45 "template\en\default\global\confirm-user-match.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); $output .= "\n\n <form method=\"post\" "; #line 50 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get('script')) { $output .= " action=\""; #line 49 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get('script'); $output .= "\""; } #line 53 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['Bugzilla', 0, 'cgi', 0, 'param', [ 'data' ]])) { $output .= "\n enctype=\"multipart/form-data\""; } $output .= "\n >\n\n <p>"; #line 57 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " cannot make a conclusive match for one or more of the\n names and/or email addresses you entered on the previous page.<br>\n Please examine the lists of potential matches below and select the\n one you want, or go back to the previous page to revise the names\n you entered.\n </p>"; } else { #line 64 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Match Failed' }); $output .= "\n <p>"; #line 66 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " was unable to make any match at all for one or more of\n the names and/or email addresses you entered on the previous page.<br>\n Please go back and try other names or email addresses.\n </p>"; } $output .= "\n\n <table border=\"0\">\n <tr>\n <td colspan=\"2\">\n <hr width=\"100%\" size=\"1\">\n </td>\n </tr>\n\n "; $output .= "\n"; #line 146 "template\en\default\global\confirm-user-match.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('matches'); 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->{'field'} = $_tt_value; $output .= "\n <tr>\n <td align=\"left\" valign=\"top\">"; #line 84 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $context->process('field_names', { 'field_name' => $stash->get(['field', 0, 'key', 0]) }); $output .= ":\n </td>\n <td align=\"left\" valign=\"top\">"; #line 138 "template\en\default\global\confirm-user-match.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['field', 0, 'value', 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->{'query'} = $_tt_value; $output .= "\n <div class=\"user_match\">\n <b>"; #line 89 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['query', 0, 'key', 0]); &$_tt_filter($output); }; $output .= "</b>"; #line 136 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0])) { #line 127 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]) > 1) { #line 123 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['query', 0, 'value', 0, 'status', 0]) eq 'fail') { $output .= "\n <font color=\"#FF0000\">\n matches multiple users.\n </font>\n Please go back and try again with a more specific\n name/address."; } else { #line 105 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['query', 0, 'value', 0, 'status', 0]) eq 'trunc') { $output .= "\n matched\n more than the maximum\n of "; #line 102 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]); $output .= " users:<br>"; } else { $output .= "\n matched:<br>"; } $output .= "\n <select name=\""; #line 106 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'key', 0]); &$_tt_filter($output); }; $output .= "\"\n id=\""; #line 107 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field', 0, 'key', 0]); &$_tt_filter($output); }; $output .= "\""; #line 115 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['fields', 0, $stash->get(['field', 0, 'key', 0]), 0, 'type', 0]) eq 'multi') { $output .= "\n multiple=\"multiple\""; #line 114 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]) > 5) { $output .= "\n size=\"5\""; } else { $output .= "\n size=\""; #line 113 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]); $output .= "\""; } } $output .= "\n >"; #line 121 "template\en\default\global\confirm-user-match.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['query', 0, 'value', 0, 'users', 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->{'match'} = $_tt_value; $output .= "\n <option value=\""; #line 118 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['match', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 119 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['match', 0, 'identity', 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>"; } } else { $output .= "\n matched\n <b>"; #line 126 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['query', 0, 'value', 0, 'users', 0, 0, 0, 'identity', 0]); &$_tt_filter($output); }; $output .= "</b>"; } } else { #line 135 "template\en\default\global\confirm-user-match.html.tmpl" if (($stash->get(['query', 0, 'key', 0, 'length', 0]) < 3) && ! ($stash->get(['Param', [ 'emailsuffix' ]])) && ($stash->get(['Param', [ 'usermatchmode' ]]) eq 'search')) { $output .= "\n <font color=\"#FF0000\">was too short for substring match\n (minimum 3 characters)</font>"; } else { $output .= "\n <font color=\"#FF0000\">did not match anything</font>"; } } $output .= "\n </div>";; ($_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 </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <hr width=\"100%\" size=\"1\">\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 </table>\n"; #line 160 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get('matchsuccess') eq 1) { $output .= "\n"; #line 152 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $context->process('global/hidden-fields.html.tmpl', { 'exclude' => ('' . "^Bugzilla_(login|password)") }); $output .= "\n\n <p>\n <input type=\"submit\" id=\"continue\" value=\"Continue\">\n </p>\n\n </form>\n"; } $output .= "\n"; #line 162 "template\en\default\global\confirm-user-match.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; }, DEFBLOCKS => { 'field_names' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n"; #line 177 "template\en\default\global\confirm-user-match.html.tmpl" if ($stash->get(['field_descs', 0, $stash->get('field_name'), 0])) { #line 168 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['field_descs', 0, $stash->get('field_name'), 0]); &$_tt_filter($output); }; } elsif ($stash->get(['field_name', 0, 'match', [ '^requestee' ]])) { #line 173 "template\en\default\global\confirm-user-match.html.tmpl" $output .= $stash->get(['fields', 0, $stash->get('field_name'), 0, 'flag_type', 0, 'name', 0]); $output .= " requestee\n"; } else { #line 176 "template\en\default\global\confirm-user-match.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field_name'); &$_tt_filter($output); }; } $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -