📄 create-guided.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1187883352', '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 $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 27 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 29 "template\en\default\bug\create\create-guided.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 30 "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()', 'style' => '#somebugs { width: 100%; height: 500px }' }); $output .= "\n\n<p>\n <font color=\"red\">\n This is a template used on mozilla.org. This template, and the\n comment-guided.txt.tmpl template that formats the data submitted via \n the form in this 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. As much of the text will not apply, \n you should alter it \n if you want to use this form on your "; #line 46 "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 57 "template\en\default\bug\create\create-guided.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['product', 0, 'components', 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->{'c'} = $_tt_value; $output .= "\n '"; #line 56 "template\en\default\bug\create\create-guided.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "',";; ($_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\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 96 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['cgi', 0, 'user_agent', [ 'Netscape(\d)' ]])) { #line 74 "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 80 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= ".\n Report "; #line 81 "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 82 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['matches', 0, 0, 0]); $output .= "/feedback/index.html\">\n Netscape "; #line 83 "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 86 "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 87 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'abug', 0]); $output .= " you find \n in Netscape "; #line 88 "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>,\n<a href=\"http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-trunk/\">Thunderbird</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"; #line 101 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['cgi', 0, 'user_agent', [ 'Gecko/' ]])) { #line 99 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('matches', $stash->get(['cgi', 0, 'user_agent', 0, 'match', [ 'Gecko/(\d+)' ]])); $output .= "\n "; } $output .= "\n\n<!-- \@\@\@ Need UA checking here -->\n\n<a name=\"step1\"></a>\n<h3>Step 1 of 3 - has your "; #line 106 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " already been reported?</h3>\n\n<p>\n <font color=\"red\">Please don't skip this step - half of all "; #line 110 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " filed are\n reported already.</font>\n Check the two lists of frequently-reported "; #line 112 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= ":\n</p>\n\n"; #line 122 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['product', 0, 'name', 0]) eq 'Firefox') { #line 117 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('productstring', 'product=Mozilla%20Application%20Suite&product=Firefox'); } elsif ($stash->get(['product', 0, 'name', 0]) eq 'Thunderbird') { #line 119 "template\en\default\bug\create\create-guided.html.tmpl" $stash->set('productstring', 'product=Mozilla%20Application%20Suite&product=Thunderbird'); } else { #line 121 "template\en\default\bug\create\create-guided.html.tmpl" # CAPTURE $stash->set('productstring', do { my $output = ''; $output .= "product="; #line 121 "template\en\default\bug\create\create-guided.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'name', 0]); &$_tt_filter($output); }; $output; }); } $output .= "\n\n<p>\n <a href=\"duplicates.cgi?"; #line 125 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get('productstring'); $output .= "&format=simple\" target=\"somebugs\">All-time Top 100</a> (loaded initially) |\n <a href=\"duplicates.cgi?"; #line 126 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get('productstring'); $output .= "&format=simple&sortby=delta&reverse=1&maxrows=100&changedsince=14\" target=\"somebugs\">Hot in the last two weeks</a> \n</p>\n\n<iframe name=\"somebugs\" id=\"somebugs\"\n style=\"border: 2px black solid\"\n src=\"duplicates.cgi?"; #line 131 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get('productstring'); $output .= "&format=simple\">\n</iframe>\n\n<p>\n If your "; #line 135 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " isn't there, search "; #line 135 "template\en\default\bug\create\create-guided.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " by entering\n a few key words having to do with your "; #line 136 "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 The results will appear above.\n </p>\n\n"; $output .= "\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=\"__all__\">\n <input type=\"hidden\" name=\"product\" value=\""; #line 146 "template\en\default\bug\create\create-guided.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 156 "template\en\default\bug\create\create-guided.html.tmpl" if ($stash->get(['product', 0, 'name', 0]) eq 'Firefox' || $stash->get(['product', 0, 'name', 0]) eq 'Thunderbird' || $stash->get(['product', 0, 'name', 0]) eq 'Mozilla Application Suite' || $stash->get(['product', 0, 'name', 0]) eq 'Camino') { $output .= "\n <input type=\"hidden\" name=\"product\" value=\"Core\">\n <input type=\"hidden\" name=\"product\" value=\"Toolkit\">\n <input type=\"hidden\" name=\"product\" value=\"PSM\">\n <input type=\"hidden\" name=\"product\" value=\"NSPR\">\n <input type=\"hidden\" name=\"product\" value=\"NSS\">"; } $output .= " \n <input type=\"hidden\" name=\"chfieldfrom\" value=\"-6m\">\n <input type=\"hidden\" name=\"chfieldto\" value=\"Now\">\n <input type=\"hidden\" name=\"chfield\" value=\"[Bug creation]\">\n <input type=\"text\" name=\"content\" size=\"40\">\n <input type=\"submit\" id=\"search\" value=\"Search\">\n </form>\n\n<p>\n Look through the search results. If you get the\n <tt><b>"; #line 166 "template\en\default\bug\create\create-guided.html.tmpl"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -