📄 user-error.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1115863714', '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 $error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n\n"; $output .= "\n"; #line 36 "template\en\default\global\user-error.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 39 "template\en\default\global\user-error.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 42 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Error', 1); $output .= "\n"; #line 800 "template\en\default\global\user-error.html.tmpl" # CAPTURE $stash->set('error_message', do { my $output = ''; #line 800 "template\en\default\global\user-error.html.tmpl" if ($stash->get('error') eq 'account_creation_disabled') { #line 45 "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 51 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Disabled'); #line 51 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('disabled_reason'); &$filter($output); }; $output .= "\n <hr>\n If you believe your account should be restored, please\n send email to "; #line 54 "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 57 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Already Exists'); $output .= "\n There is already an account with"; #line 66 "template\en\default\global\user-error.html.tmpl" if ($stash->get('email')) { $output .= "\n the login name "; #line 61 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('email'); &$filter($output); }; $output .= "."; } else { $output .= "\n that login name."; } $output .= "\n"; } elsif ($stash->get('error') eq 'account_inexistent') { #line 69 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Account Does Not Exist'); $output .= "\n There is no "; #line 70 "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 73 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Invalid Characters In Alias'); $output .= "\n The alias you entered, <em>"; #line 74 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$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 another alias\n that does not contain commas and spaces.\n"; } elsif ($stash->get('error') eq 'alias_in_use') { #line 81 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias In Use'); #line 81 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('bug_link'); &$filter($output); }; $output .= " has already taken the alias \n <em>"; #line 82 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$filter($output); }; $output .= "</em>. Please choose another one.\n"; } elsif ($stash->get('error') eq 'alias_is_numeric') { #line 85 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias Is Numeric'); $output .= "\n You tried to give this "; #line 86 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " the alias <em>"; #line 86 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('alias'); &$filter($output); }; $output .= "</em>,\n but aliases cannot be merely numbers, since they could\n then be confused with "; #line 88 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " IDs. Please choose another\n alias containing at least one letter.\n"; } elsif ($stash->get('error') eq 'alias_too_long') { #line 92 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Alias Too Long'); #line 92 "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 96 "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 'authorization_failure') { #line 102 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Authorization Failed'); $output .= "\n You are not allowed to "; #line 103 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('action'); &$filter($output); }; $output .= ".\n"; } elsif ($stash->get('error') eq 'attachment_access_denied') { #line 106 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Access Denied'); $output .= "\n You are not authorized to access this attachment.\n"; } elsif ($stash->get('error') eq 'bug_access_denied') { #line 110 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Access Denied'); $output .= "\n You are not authorized to access "; #line 111 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #"; #line 111 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bug_id'); &$filter($output); }; $output .= ".\n"; } elsif ($stash->get('error') eq 'bug_access_query') { #line 114 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Access Denied'); $output .= "\n You are not authorized to access "; #line 115 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #"; #line 115 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bug_id'); &$filter($output); }; $output .= ".\n To see this "; #line 116 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", you must\n first <a href=\"show_bug.cgi?id="; #line 119 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('bug_id'); &$filter($output); }; $output .= "&GoAheadAndLogIn=1\">log\n in to an account</a> with the appropriate permissions.\n"; } elsif ($stash->get('error') eq 'buglist_parameters_required') { #line 123 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Parameters Required'); $output .= "\n You may not search, or create saved searches, without any search terms.\n"; } elsif ($stash->get('error') eq 'bugs_not_changed') { #line 127 "template\en\default\global\user-error.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; #line 127 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output .= " Not Changed"; $output; }); $output .= "\n Um, you apparently did not change anything on the selected "; #line 128 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= ".\n"; } elsif ($stash->get('error') eq 'chart_too_large') { #line 131 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Chart Too Large'); $output .= "\n Sorry, but 2000 x 2000 is the maximum size for a chart.\n"; } elsif ($stash->get('error') eq 'comment_required') { #line 135 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Comment Required'); $output .= "\n You have to specify a <b>comment</b> on this change.\n Please give some words on the reason for your change.\n"; } elsif ($stash->get('error') eq 'comment_too_long') { #line 140 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Comment Too Long'); $output .= "\n Comments cannot be longer than 65,535 characters.\n"; } elsif ($stash->get('error') eq 'dependency_loop_multi') { #line 144 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Dependency Loop Detected'); $output .= "\n The following "; #line 145 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "(s) would appear on both the \"depends on\"\n and \"blocks\" parts of the dependency tree if these changes\n are committed: "; #line 147 "template\en\default\global\user-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('both'); &$filter($output); }; $output .= ". This would create a circular\n dependency, which is not allowed.\n"; } elsif ($stash->get('error') eq 'dependency_loop_single') { #line 151 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Dependency Loop Detected'); $output .= "\n You can't make "; #line 152 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'abug', 0]); $output .= " blocked or dependent on itself.\n"; } elsif ($stash->get('error') eq 'description_required') { #line 155 "template\en\default\global\user-error.html.tmpl" $stash->set('title', 'Description Required'); $output .= "\n You must provide a description of the "; #line 156 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ".\n"; } elsif ($stash->get('error') eq 'dupe_of_self_disallowed') { #line 0 "template\en\default\global\user-error.html.tmpl" $stash->set('title', ("Cannot mark " . $stash->get(['terms', 0, 'abug', 0]) . " as a duplicate of itself")); $output .= "\n You can't mark "; #line 160 "template\en\default\global\user-error.html.tmpl" $output .= $stash->get(['terms', 0, 'abug', 0]); $output .= " as a duplicate of itself.\n";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -