📄 create-guided.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1118310354', 'name' => 'bug/create/create-guided.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"; #line 28 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 31 "template\en\default\bug\create\create-guided.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 31 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); $output .= "\n"; #line 0 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => ("Enter " . $stash->get(['terms', 0, 'ABug', 0])), 'onload' => 'PutDescription()' }); $output .= "\n\n<p>\n <font color=\"red\">\n This is a template used on mozilla.org - it, along with the\n comment-guided.txt.tmpl template, are included as a demo of what it's\n possible to do with custom templates in general, and custom "; #line 43 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "\n entry templates in particular. You will need to alter the text of this\n template if you want to use it on your "; #line 45 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " installation.\n </font>\n</p>\n"; #line 50 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('tablecolour', '#FFFFCC'); $output .= "\n\n"; $output .= "\n<script type=\"text/javascript\">\nvar descriptions = ["; #line 59 "template\en\default\bug\create\create-guided.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('component_'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'c'} = $value; $output .= "\n '"; #line 57 "template\en\default\bug\create\create-guided.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'description', 0]); &$filter($output); }; $output .= "',";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n];\n\nfunction PutDescription() {\n if ((document.getElementById) && (document.body.innerHTML)) {\n var componentIndex = document.getElementById('component').selectedIndex;\n if (componentIndex != -1) {\n var description = document.getElementById('description');\n description.innerHTML = descriptions[componentIndex];\n }\n }\n}\n</script>\n\n"; $output .= "\n"; #line 92 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['cgi', 0, 'user_agent', [ 'Mozilla/4' ]]) && ! $stash->get(['cgi', 0, 'user_agent', [ 'compatible' ]])) { $output .= "\n <div style=\"background-color: lightgrey;\n border: 1px solid black;\n padding: 2px\">\n <font color=\"#990000\">\n <b>\n Note: This is a tool for reporting "; #line 82 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " in software from\n mozilla.org. Use Netscape's\n <a href=\"http://help.netscape.com/forms/bug-client.html\">"; #line 84 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "\n reporting form</a> to report "; #line 85 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " with Netscape products\n like Navigator 4.x. Netscape products have a blue and black N in the \n top right hand corner.\n </b>\n </font>\n </div>"; } $output .= "\n"; #line 117 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['cgi', 0, 'user_agent', [ 'Netscape(\d)' ]])) { #line 95 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('matches', $stash->get(['cgi', 0, 'user_agent', 0, 'match', [ 'Netscape(\d)' ]])); $output .= "\n <div style=\"background-color: lightgrey;\n border: 1px solid black;\n padding: 2px\">\n <font color=\"#990000\">\n <b>\n You are using Netscape "; #line 101 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= ".\n Report "; #line 102 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " with this browser to the\n <a href=\"http://home.netscape.com/browsers/"; #line 103 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= "/feedback/index.html\">\n Netscape "; #line 104 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= " Feedback Center.</a>\n </b>\n </font>\n This form is only for reporting "; #line 107 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " in the Mozilla web browser\n and other products from mozilla.org. To report "; #line 108 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'abug', 0]); $output .= " you find \n in Netscape "; #line 109 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= " with this form, you must reproduce it first in \n a recent build of\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest/\">Mozilla</a>,\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/\">Firefox</a> or\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/camino/nightly/latest/\">Camino</a>\n to make sure the problem hasn't been fixed already.\n </div>"; } $output .= "\n\n<p>\n This form prompts you for the information required to\n file a good "; #line 121 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " report (or enhancement request.)\n It may seem lengthy, but developers need all this information\n to understand and reproduce the "; #line 123 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", which is the first step towards\n fixing it. Please note that <strong>we do not accept "; #line 124 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " reports by\n email</strong> - please do not email developers or mozilla.org staff\n with "; #line 126 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " reports. <font color=\"red\">Also, please do not\n file "; #line 127 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " on browser/email software older than two weeks - first,\n download a newer build of\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest/\">Mozilla</a>,\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/\">Firefox</a>,\n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/camino/nightly/latest/\">Camino</a>\n or \n <a href=\"http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/\">Thunderbird</a>\n and check that the problem is still present.\n </font>\n</p>\n\n<a name=\"step1\"></a>\n<h3>Step 1 - search for your "; #line 139 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "</h3>\n\n<p>\n Please see if your "; #line 142 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " has already been reported.\n <font color=\"red\">Please don't skip this step.</font>\n 50% of the "; #line 144 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " filed in\n "; #line 145 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " are duplicates, and this wastes a lot of our QA engineers' time.\n</p>\n\n"; #line 182 "template\en\default\bug\create\create-guided.html.tmpl" if (($stash->get(['cgi', 0, 'user_agent', [ 'Mozilla/4' ]]) && ! $stash->get(['cgi', 0, 'user_agent', [ 'compatible' ]])) || ($stash->get(['cgi', 0, 'user_agent', [ 'Mozilla/[123]' ]]))) { $output .= "\n <p>\n Visit the <a href=\"duplicates.cgi\">most-frequently-reported "; #line 152 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " page</a>\n and see if your "; #line 153 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " is there. If not, go to the\n <a href=\"query.cgi?format=modern\">search page</a>\n and search "; #line 155 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " by entering two or\n three of the main words having to do with your "; #line 156 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " in the top box.\n For example: <tt><b>pop3 mail</b></tt> or <tt><b>copy paste</b></tt>.\n </p>"; } else { $output .= "\n <p>\n Check the list of most-frequently-reported "; #line 162 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " below.\n If your "; #line 163 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " isn't there, search "; #line 163 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " by entering two or\n three of the main words having to do with your "; #line 164 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " in this box.\n For example: <tt><b>pop3 mail</b></tt> or <tt><b>copy paste</b></tt>.\n </p>\n\n <form action=\"buglist.cgi\" method=\"get\" target=\"somebugs\">\n <input type=\"hidden\" name=\"format\" value=\"simple\">\n <input type=\"hidden\" name=\"order\" value=\"relevance desc\">\n <input type=\"hidden\" name=\"bug_status\" value=\"__open__\">\n <input type=\"hidden\" name=\"product\" value=\""; #line 172 "template\en\default\bug\create\create-guided.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "\">\n <input type=\"text\" name=\"content\" size=\"40\">\n <input type=\"submit\" value=\"Search\">\n </form>\n\n <iframe name=\"somebugs\" width=\"100%\" height=\"80%\"\n style=\"border: 2px black solid\"\n src=\"duplicates.cgi?product="; #line 179 "template\en\default\bug\create\create-guided.html.tmpl"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -