📄 sidebar.xul.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1185338982', 'name' => 'sidebar.xul.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"; #line 25 "template\en\default\sidebar.xul.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n<?xml version=\"1.0\"?>\n<?xml-stylesheet href=\"chrome://communicator/skin/\" type=\"text/css\"?>\n<?xml-stylesheet href=\""; #line 29 "template\en\default\sidebar.xul.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "skins/standard/panel.css\" type=\"text/css\"?>\n<window\n xmlns=\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\"\n xmlns:html=\"http://www.w3.org/1999/xhtml\"\n orient=\"vertical\"\n onload=\"document.getElementById('query-field').addEventListener('keypress', initial_keypress_handler, true)\">\n\n<script type=\"application/x-javascript\"><![CDATA[\n\nfunction load_absolute_url( aAbsoluteURL ) {\n content.location = aAbsoluteURL;\n}\n\nfunction load_relative_url( aRelativeURL ) {\n aRelativeURL = '"; #line 43 "template\en\default\sidebar.xul.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "' + aRelativeURL;\n _content.location = aRelativeURL;\n}\n\nfunction initial_keypress_handler( aEvent ) {\n this.removeAttribute(\"class\");\n this.addEventListener(\"keypress\", normal_keypress_handler, true);\n this.removeEventListener(\"keypress\", initial_keypress_handler, true);\n}\n\nfunction normal_keypress_handler( aEvent ) {\n if ( aEvent.keyCode == 13 )\n load_relative_url('buglist.cgi?quicksearch=' + this.value);\n}\n\n]]></script>\n\n <textbox id=\"query-field\" class=\"descriptive-content\" value=\"enter search\" onfocus=\"this.setSelectionRange(0,this.value.length)\"/>\n\n <separator class=\"groove\"/>\n\n <box autostretch=\"never\" valign=\"top\">\n <box orient=\"vertical\" flex=\"1\">\n <text class=\"text-link\" onclick=\"load_relative_url('query.cgi')\" value=\"new search\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('report.cgi')\" value=\"reports\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('enter_bug.cgi')\" value=\"new "; #line 68 "template\en\default\sidebar.xul.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "\"/>\n <separator class=\"thin\"/>\n"; #line 119 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'id', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('userprefs.cgi')\" value=\"edit prefs\"/>"; #line 76 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editparams.cgi')\" value=\"edit params\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('editsettings.cgi')\" value=\"edit default preferences\"/>"; } #line 79 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0]) || $stash->get(['user', 0, 'can_bless', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editusers.cgi')\" value=\"edit users\"/>"; } #line 82 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['Param', [ 'useclassification' ]]) && $stash->get(['user', 0, 'groups', 0, 'editclassifications', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editclassifications.cgi')\" value=\"edit classifications\"/>"; } #line 87 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editcomponents.cgi')\" value=\"edit components\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('editflagtypes.cgi')\" value=\"edit flags\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('editvalues.cgi')\" value=\"edit field values\"/>"; } #line 90 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'creategroups', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editgroups.cgi')\" value=\"edit groups\"/>"; } #line 93 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editkeywords', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editkeywords.cgi')\" value=\"edit keywords\"/>"; } #line 96 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'bz_canusewhines', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('editwhines.cgi')\" value=\"edit whining\"/>"; } #line 99 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('sanitycheck.cgi')\" value=\"sanity check\"/>"; } #line 102 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'authorizer', 0, 'can_logout', 0])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('relogin.cgi')\" value=\"log out "; #line 101 "template\en\default\sidebar.xul.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 .= "\"/>"; } $output .= "\n <separator class=\"thin\"/>"; #line 107 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['user', 0, 'showmybugslink', 0])) { #line 105 "template\en\default\sidebar.xul.tmpl" # CAPTURE $stash->set('filtered_username', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['user', 0, 'login', 0]); &$_tt_filter($output); }; $output; }); $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('"; #line 106 "template\en\default\sidebar.xul.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'mybugstemplate' ], 'replace', [ '%userid%', $stash->get('filtered_username') ]]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "')\" value=\"my "; #line 106 "template\en\default\sidebar.xul.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= "\"/>"; } #line 110 "template\en\default\sidebar.xul.tmpl" if ($stash->get(['Param', [ 'usevotes' ]])) { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('votes.cgi?action=show_user')\" value=\"my votes\"/>"; } $output .= "\n"; #line 114 "template\en\default\sidebar.xul.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['user', 0, 'queries', 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->{'q'} = $_tt_value; $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd="; #line 113 "template\en\default\sidebar.xul.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "')\" value=\""; #line 113 "template\en\default\sidebar.xul.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'name', 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"; } else { $output .= "\n <text class=\"text-link\" onclick=\"load_relative_url('createaccount.cgi')\" value=\"new user\"/>\n <text class=\"text-link\" onclick=\"load_relative_url('index.cgi?GoAheadAndLogIn=1')\" value=\"log in\"/>"; } $output .= "\n\n </box>\n </box>\n\n <spring flex=\"1\"/>\n <box orient=\"horizontal\">\n <spring flex=\"1\"/>\n <html align=\"right\">\n <html:a class=\"text-link\" href=\""; #line 128 "template\en\default\sidebar.xul.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "sidebar.cgi\">reload</html:a>\n </html>\n </box>\n</window>\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 + -