📄 code-error.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1120800660', 'name' => 'global/code-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 37 "template\en\default\global\code-error.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 40 "template\en\default\global\code-error.html.tmpl" $stash->set('title', 'Internal Error', 1); $output .= "\n"; #line 313 "template\en\default\global\code-error.html.tmpl" # CAPTURE $stash->set('error_message', do { my $output = ''; #line 313 "template\en\default\global\code-error.html.tmpl" if ($stash->get('error') eq 'action_unrecognized') { $output .= "\n I don't recognize the value (<em>"; #line 44 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('action'); &$filter($output); }; $output .= "</em>)\n of the <em>action</em> variable.\n "; } elsif ($stash->get('error') eq 'attachment_already_obsolete') { $output .= "\n Attachment #"; #line 49 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('attach_id'); &$filter($output); }; $output .= " ("; #line 49 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('description'); &$filter($output); }; $output .= ") \n is already obsolete.\n"; } elsif ($stash->get('error') eq 'auth_err') { #line 53 "template\en\default\global\code-error.html.tmpl" $stash->set('title', 'Internal Authentication Error'); $output .= "\n "; $output .= " "; #line 0 "template\en\default\global\code-error.html.tmpl" $output .= $context->include(("account/auth/" . $stash->get('authmethod') . "-error.html.tmpl")); $output .= "\n"; } elsif ($stash->get('error') eq 'authres_unhandled') { $output .= "\n An authorization handler return value was not handled by the login code.\n"; } elsif ($stash->get('error') eq 'bad_page_cgi_id') { #line 65 "template\en\default\global\code-error.html.tmpl" $stash->set('title', 'Invalid Page ID'); $output .= "\n The ID <code>"; #line 66 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('page_id'); &$filter($output); }; $output .= "</code> is not a\n valid page identifier.\n"; } elsif ($stash->get('error') eq 'bug_error') { $output .= "\n Trying to retrieve "; #line 71 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " "; #line 71 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_id', 0]); &$filter($output); }; $output .= " returned \n the error "; #line 72 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'error', 0]); &$filter($output); }; $output .= ".\n "; } elsif ($stash->get('error') eq 'chart_data_not_generated') { $output .= "\n The tool which gathers "; #line 76 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " counts has not been run yet.\n "; } elsif ($stash->get('error') eq 'chart_datafile_corrupt') { $output .= "\n The chart data file "; #line 80 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('file'); &$filter($output); }; $output .= " is corrupt.\n "; } elsif ($stash->get('error') eq 'chart_dir_nonexistent') { $output .= "\n One of the directories <tt>"; #line 84 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('dir'); &$filter($output); }; $output .= "</tt> and \n <tt>"; #line 85 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('graphdir'); &$filter($output); }; $output .= "</tt> does not exist.\n "; } elsif ($stash->get('error') eq 'chart_file_open_fail') { $output .= "\n Unable to open the chart datafile <tt>"; #line 89 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('filename'); &$filter($output); }; $output .= "</tt>.\n "; } elsif ($stash->get('error') eq 'chart_lines_not_installed') { $output .= "\n Charts will not work without the Chart::Lines Perl module being installed.\n Run checksetup.pl for installation instructions.\n"; } elsif ($stash->get('error') eq 'cookies_need_value') { $output .= "\n Every cookie must have a value.\n"; } elsif ($stash->get('error') eq 'field_type_mismatch') { $output .= "\n Cannot seem to handle <code>"; #line 102 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$filter($output); }; $output .= "</code>\n and <code>"; #line 103 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('type'); &$filter($output); }; $output .= "</code> together.\n"; } elsif ($stash->get('error') eq 'gd_not_installed') { $output .= "\n Charts will not work without the GD Perl module being installed.\n Run checksetup.pl for installation instructions.\n"; } elsif ($stash->get('error') eq 'illegal_content_type_method') { $output .= "\n Your form submission got corrupted somehow. The <em>content\n method</em> field, which specifies how the content type gets determined,\n should have been either <em>autodetect</em>, <em>list</em>,\n or <em>manual</em>, but was instead\n <em>"; #line 116 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('contenttypemethod'); &$filter($output); }; $output .= "</em>.\n"; } elsif ($stash->get('error') eq 'illegal_field') { $output .= "\n A legal "; #line 120 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$filter($output); }; $output .= " was not set.\n"; } elsif ($stash->get('error') eq 'inactive_group') { $output .= "\n Attempted to add "; #line 124 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " to an inactive group, identified by the bit\n '"; #line 125 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bit'); &$filter($output); }; $output .= "'.\n"; } elsif ($stash->get('error') eq 'bad_arg') { $output .= "\n Bad argument <code>"; #line 129 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('argument'); &$filter($output); }; $output .= "</code> sent to\n <code>"; #line 130 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('function'); &$filter($output); }; $output .= "</code> function.\n"; } elsif ($stash->get('error') eq 'invalid_attach_id_to_obsolete') { $output .= "\n The attachment number of one of the attachments you wanted to obsolete,"; #line 136 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('attach_id'); &$filter($output); }; $output .= ", is invalid.\n "; } elsif ($stash->get('error') eq 'invalid_column_name_cookie') { #line 139 "template\en\default\global\code-error.html.tmpl" $stash->set('title', 'Invalid Column Name'); $output .= "\n The custom sort order specified in your cookie contains an invalid\n column name <em>"; #line 141 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -