📄 user-error.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1225910728', 'name' => 'global/user-error.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"; $output .= "\n"; #line 42 "template\en\default\global\user-error.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 44 "template\en\default\global\user-error.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 46 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Error', 1); $output .= "\n"; #line 1534 "template\en\default\global\user-error.html.tmpl" # CAPTURE $stash->set('error_message', do { my $output = ''; #line 1533 "template\en\default\global\user-error.html.tmpl" if ($stash->get('error') eq 'account_creation_disabled') { #line 50 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Creation Disabled'); $output .= "\n User account creation has been disabled or restricted.\n <hr>\n New accounts must be created by an administrator.\n"; } elsif ($stash->get('error') eq 'account_disabled') { #line 56 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Disabled'); #line 57 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('disabled_reason'); &$_tt_filter($output); }; $output .= "\n <hr>\n If you believe your account should be restored, please\n send email to "; #line 60 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= " explaining why.\n"; } elsif ($stash->get('error') eq 'account_exists') { #line 63 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Already Exists'); $output .= "\n There is already an account with"; #line 69 "template\en\default\global\user-error.html.tmpl" if ($stash->get('email')) { $output .= "\n the login name "; #line 66 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('email'); &$_tt_filter($output); }; $output .= "."; } else { $output .= "\n that login name."; } $output .= "\n"; } elsif ($stash->get('error') eq 'account_inexistent') { #line 72 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Does Not Exist'); $output .= "\n There is no "; #line 73 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " account with that login name.\n"; } elsif ($stash->get('error') eq 'alias_has_comma_or_space') { #line 76 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Invalid Characters In Alias'); $output .= "\n The alias you entered, <em>"; #line 77 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$_tt_filter($output); }; $output .= "</em>,\n contains one or more commas or spaces. Aliases cannot contain\n commas or spaces because those characters are used to separate\n aliases from each other in lists. Please choose an alias\n that does not contain commas and spaces.\n"; } elsif ($stash->get('error') eq 'alias_in_use') { #line 84 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias In Use'); #line 85 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " "; #line 85 "template\en\default\global\user-error.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_id') ]) || $context->throw($context->error); $output .= $stash->get('bug_id'); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "\n has already taken the alias <em>"; #line 86 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$_tt_filter($output); }; $output .= "</em>.\n Please choose another one.\n"; } elsif ($stash->get('error') eq 'alias_not_defined') { #line 90 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias Is Not Defined'); $output .= "\n You did not supply an alias to this "; #line 91 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ".\n"; } elsif ($stash->get('error') eq 'alias_is_numeric') { #line 94 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias Is Numeric'); $output .= "\n You tried to give this "; #line 95 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " the alias <em>"; #line 95 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$_tt_filter($output); }; $output .= "</em>,\n but aliases cannot be merely numbers, since they could\n then be confused with "; #line 97 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " IDs. Please choose an\n alias containing at least one letter.\n"; } elsif ($stash->get('error') eq 'alias_too_long') { #line 101 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias Too Long'); #line 102 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " aliases cannot be longer than 20 characters.\n Please choose a shorter alias.\n"; } elsif ($stash->get('error') eq 'auth_cant_create_account') { #line 106 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Can\'t create accounts'); $output .= "\n This site is using an authentication scheme which does not permit\n account creation. Please contact an administrator to get a new account\n created.\n"; } elsif ($stash->get('error') eq 'auth_failure') { #line 112 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Authorization Required'); #line 113 "template\en\default\global\user-error.html.tmpl" $stash->set('admindocslinks', { 'groups.html' => 'Group Security' }); $output .= "\n Sorry,"; #line 117 "template\en\default\global\user-error.html.tmpl" if ($stash->get('group')) { $output .= "\n you aren't a member of the '"; #line 116 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('group'); &$_tt_filter($output); }; $output .= "' group,"; } $output .= "\n"; #line 126 "template\en\default\global\user-error.html.tmpl" if ($stash->get('reason')) { #line 120 "template\en\default\global\user-error.html.tmpl" if ($stash->get('group')) { $output .= " and "; } #line 125 "template\en\default\global\user-error.html.tmpl" if ($stash->get('reason') eq 'cant_bless') { $output .= "\n you don't have permissions to add or remove people from a group,"; } elsif ($stash->get('reason') eq 'not_visible') { $output .= "\n there are visibility restrictions on certain user groups,"; } } $output .= "\n"; #line 128 "template\en\default\global\user-error.html.tmpl" if ($stash->get('group') || $stash->get('reason')) { $output .= " and so "; } $output .= " you are not authorized to"; #line 151 "template\en\default\global\user-error.html.tmpl" if ($stash->get('action') eq 'access') { $output .= "\n access"; } elsif ($stash->get('action') eq 'add') { $output .= "\n add new"; } elsif ($stash->get('action') eq 'begin') { $output .= "\n begin"; } elsif ($stash->get('action') eq 'modify') { $output .= "\n modify"; } elsif ($stash->get('action') eq 'delete') { $output .= "\n delete"; } elsif ($stash->get('action') eq 'edit') { $output .= "\n add, modify or delete"; } elsif ($stash->get('action') eq 'move') { $output .= "\n move"; } elsif ($stash->get('action') eq 'run') { $output .= "\n run"; } elsif ($stash->get('action') eq 'schedule') { $output .= "\n schedule"; } elsif ($stash->get('action') eq 'use') { $output .= "\n use"; } elsif ($stash->get('action') eq 'approve') { $output .= "\n approve"; } $output .= "\n"; #line 201 "template\en\default\global\user-error.html.tmpl" if ($stash->get('object') eq 'attachment') { $output .= "\n this attachment"; } elsif ($stash->get('object') eq 'bugs') { $output .= "\n "; #line 156 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); } elsif ($stash->get('object') eq 'charts') { $output .= "\n the \"New Charts\" feature"; } elsif ($stash->get('object') eq 'classifications') { $output .= "\n classifications"; } elsif ($stash->get('object') eq 'components') { $output .= "\n components"; } elsif ($stash->get('object') eq 'custom_fields') { $output .= "\n custom fields"; } elsif ($stash->get('object') eq 'field_values') { $output .= "\n field values"; } elsif ($stash->get('object') eq 'flagtypes') { $output .= "\n flag types"; } elsif ($stash->get('object') eq 'group_access') { $output .= "\n group access"; } elsif ($stash->get('object') eq 'groups') { $output .= "\n groups"; } elsif ($stash->get('object') eq 'keywords') { $output .= "\n keywords"; } elsif ($stash->get('object') eq 'milestones') { $output .= "\n milestones"; } elsif ($stash->get('object') eq 'multiple_bugs') { $output .= "\n multiple "; #line 178 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " at once"; } elsif ($stash->get('object') eq 'parameters') { $output .= "\n parameters"; } elsif ($stash->get('object') eq 'products') { $output .= "\n products"; } elsif ($stash->get('object') eq 'quips') { $output .= "\n quips"; } elsif ($stash->get('object') eq 'reports') { $output .= "\n whine reports"; } elsif ($stash->get('object') eq 'sanity_check') { $output .= "\n a sanity check"; } elsif ($stash->get('object') eq 'settings') { $output .= "\n settings"; } elsif ($stash->get('object') eq 'sudo_session') { $output .= "\n an sudo session"; } elsif ($stash->get('object') eq 'timetracking_summaries') { $output .= "\n time-tracking summary reports"; } elsif ($stash->get('object') eq 'user') { $output .= "\n the user you specified"; } elsif ($stash->get('object') eq 'users') { $output .= "\n users"; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -