?? index.html.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1186058192', 'name' => 'index.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"; $output .= "\n\n"; $output .= "\n"; #line 29 "template\en\default\index.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n"; #line 0 "template\en\default\index.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => ($stash->get(['terms', 0, 'Bugzilla', 0]) . " Main Page"), 'header' => 'Main Page', 'header_addl_info' => ("version " . '3.0.6'), 'style_urls' => [ 'skins/standard/index.css' ], 'onload' => 'document.forms[\'f\'].quicksearch.focus();' }); $output .= "\n\n\n<script type=\"text/javascript\">\n<!--\nfunction addSidebar() {\n if ((typeof window.sidebar == \"object\") && (typeof window.sidebar.addPanel == \"function\"))\n {\n var sidebarname=window.location.host;\n if (!/bug/i.test(sidebarname))\n sidebarname=\""; #line 48 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " \"+sidebarname;\n window.sidebar.addPanel (sidebarname, \""; #line 49 "template\en\default\index.html.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "sidebar.cgi\", \"\");\n }\n else\n {\n var rv = window.confirm (\"Your browser does not support the sidebar extension. \" + \"Would you like to upgrade now?\");\n if (rv)\n document.location.href = \"http://www.mozilla.org/\";\n }\n}\n//-->\n</script>\n"; #line 101 "template\en\default\index.html.tmpl" if ($stash->get('release')) { $output .= "\n <div id=\"new_release\">"; #line 99 "template\en\default\index.html.tmpl" if ($stash->get(['release', 0, 'data', 0])) { #line 68 "template\en\default\index.html.tmpl" if ($stash->get(['release', 0, 'deprecated', 0])) { $output .= "\n <p>"; #line 65 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " "; #line 65 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'deprecated', 0]); &$_tt_filter($output); }; $output .= " is no longer\n supported. You are highly encouraged to upgrade in order to keep your\n system secure.</p>"; } $output .= "\n\n <p>A new "; #line 70 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " version ("; #line 70 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'data', 0, 'latest_ver', 0]); &$_tt_filter($output); }; $output .= ")\n is available at\n <a href=\""; #line 72 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'data', 0, 'url', 0]); &$_tt_filter($output); }; $output .= "\">"; #line 72 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'data', 0, 'url', 0]); &$_tt_filter($output); }; $output .= "</a>.<br>\n Release date: "; #line 73 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'data', 0, 'date', 0]); &$_tt_filter($output); }; $output .= "</p>\n\n <p class=\"notice\">This message is only shown to logged in users with admin privs.\n You can configure this notification from the\n <a href=\"editparams.cgi?section=core#upgrade_notification\">Parameters</a> page.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'missing_package') { $output .= "\n <p>Missing package '"; #line 79 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'package', 0]); &$_tt_filter($output); }; $output .= "'. This package is required to\n <a href=\"editparams.cgi?section=core#upgrade_notification\">notify you about new releases</a>.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'cannot_download') { $output .= "\n <p>The local XML file '"; #line 82 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'xml_file', 0]); &$_tt_filter($output); }; $output .= "' cannot be created.\n Please make sure the web server can write in this directory and that you can access\n the web. If you are behind a proxy, set the\n <a href=\"editparams.cgi?section=core#proxy_url\">proxy_url</a> parameter correctly.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'no_update') { $output .= "\n <p>The local XML file '"; #line 87 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'xml_file', 0]); &$_tt_filter($output); }; $output .= "' cannot be updated.\n Please make sure the web server can edit this file.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'no_access') { $output .= "\n <p>The local XML file '"; #line 90 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'xml_file', 0]); &$_tt_filter($output); }; $output .= "' cannot be read.\n Please make sure this file has the correct rights set on it.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'corrupted') { $output .= "\n <p>The local XML file '"; #line 93 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['release', 0, 'xml_file', 0]); &$_tt_filter($output); }; $output .= "' has an invalid XML format.\n Please delete it and try accessing this page again.</p>"; } elsif ($stash->get(['release', 0, 'error', 0]) eq 'unknown_parameter') { $output .= "\n <p>'"; #line 96 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'upgrade_notification' ]]); &$_tt_filter($output); }; $output .= "' is not a valid notification\n parameter. Please check this parameter in the\n <a href=\"editparams.cgi?section=core#upgrade_notification\">Parameters</a> page.</p>"; } $output .= "\n </div>"; } $output .= "\n\n<div id=\"page-index\">\n <div class=\"intro\"></div>\n\n <p>Welcome to "; #line 106 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= ". To see what's new in this version\n of "; #line 107 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= ", see the \n <a href=\"page.cgi?id=release-notes.html\">release notes</a>!\n You may also want to read the \n <a href=\""; #line 110 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'docs_urlbase' ]]); &$_tt_filter($output); }; $output .= "using.html\">"; #line 111 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " User's Guide</a> to find out more about \n "; #line 112 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " and how to use it.</p>\n\n <p>Most common actions:</p>\n <ul>\n <li id=\"query\"><a href=\"query.cgi\">Search existing "; #line 116 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " reports</a></li>\n <li id=\"enter-bug\"><a href=\"enter_bug.cgi\">Enter a new "; #line 117 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " report</a></li>\n <li id=\"report\"><a href=\"report.cgi\">Summary reports and charts</a></li>"; #line 131 "template\en\default\index.html.tmpl" if ($stash->get(['user', 0, 'id', 0])) { $output .= "\n <li id=\"userprefs\"><a href=\"userprefs.cgi\">Change password or user preferences</a></li>"; #line 123 "template\en\default\index.html.tmpl" if ($stash->get(['user', 0, 'authorizer', 0, 'can_logout', 0])) { $output .= "\n <li id=\"logout\"><a href=\"relogin.cgi\">Log out "; #line 122 "template\en\default\index.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['user', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "</a></li>"; } } elsif ($stash->get(['user', 0, 'authorizer', 0, 'can_login', 0])) { $output .= "\n </ul>"; #line 126 "template\en\default\index.html.tmpl" $output .= $context->process('account/auth/login-small.html.tmpl'); $output .= "\n <ul>"; #line 130 "template\en\default\index.html.tmpl" if ($stash->get(['Param', [ 'createemailregexp' ]]) && $stash->get(['user', 0, 'authorizer', 0, 'user_can_create_account', 0])) { $output .= "\n <li id=\"account\"><a href=\"createaccount.cgi\">Open a new "; #line 129 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " account</a></li>"; } } $output .= "\n <li id=\"sidebar\"><a href=\"javascript:addSidebar()\">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li>\n <li id=\"quick_search_plugin\">\n <a href=\"javascript:window.external.AddSearchProvider('"; #line 134 "template\en\default\index.html.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "search_plugin.cgi')\">Install\n the Quick Search plugin</a> (requires Firefox 2 or Internet Explorer 7)\n </li>\n\n\n "; #line 140 "template\en\default\index.html.tmpl" $output .= $stash->get(['Hook', 0, 'process', [ 'links' ]]); $output .= "\n\n </ul>\n\n <form id=\"f\" name=\"f\" action=\"buglist.cgi\" method=\"get\"\n onsubmit=\"if (this.quicksearch.value == '')\n { alert('Please enter one or more search terms first.');\n return false; } return true;\">\n <div>\n <p>Enter "; #line 149 "template\en\default\index.html.tmpl" $output .= $stash->get(['terms', 0, 'abug', 0]); $output .= " # or some search terms:</p>\n <input id=\"quicksearch\" type=\"text\" name=\"quicksearch\">\n <input id=\"find\" type=\"submit\" value=\"Find\">\n <a href=\"page.cgi?id=quicksearch.html\">[Help]</a>\n </div>\n </form>\n\n <div class=\"outro\"></div>\n</div>\n"; #line 159 "template\en\default\index.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -