📄 site-navigation.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1167164246', 'name' => 'global/site-navigation.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 28 "template\en\default\global\site-navigation.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 30 "template\en\default\global\site-navigation.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 31 "template\en\default\global\site-navigation.html.tmpl" $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); $output .= "\n"; #line 127 "template\en\default\global\site-navigation.html.tmpl" if (! ($stash->get(['cgi', 0, 'user_agent', [ 'MSIE [1-6]' ]]) || $stash->get(['cgi', 0, 'user_agent', [ 'Mozilla/4' ]]))) { $output .= "\n <link rel=\"Top\" href=\""; #line 34 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "\">\n\n "; #line 58 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('bug') && $stash->get('bug_list') && $stash->get(['bug_list', 0, 'size', 0]) > 0) { $output .= "\n <link rel=\"Up\" href=\"buglist.cgi?regetlastlist=1\">\n\n <link rel=\"First\" href=\"show_bug.cgi?id="; #line 40 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug_list', 0, 'first', 0]); $output .= "\">\n <link rel=\"Last\" href=\"show_bug.cgi?id="; #line 41 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug_list', 0, 'last', 0]); $output .= "\">\n"; #line 43 "template\en\default\global\site-navigation.html.tmpl" $stash->set('current_bug_idx', $stash->get(['lsearch', [ $stash->get('bug_list'), $stash->get(['bug', 0, 'bug_id', 0]) ]])); $output .= "\n"; #line 57 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('current_bug_idx') ne -1) { $output .= "\n"; #line 50 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('current_bug_idx') > 0) { #line 48 "template\en\default\global\site-navigation.html.tmpl" $stash->set('prev_bug', $stash->get('current_bug_idx') - 1); $output .= "\n <link rel=\"Prev\" href=\"show_bug.cgi?id="; #line 49 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug_list', 0, $stash->get('prev_bug'), 0]); $output .= "\">"; } $output .= "\n"; #line 55 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('current_bug_idx') + 1 < $stash->get(['bug_list', 0, 'size', 0])) { #line 53 "template\en\default\global\site-navigation.html.tmpl" $stash->set('next_bug', $stash->get('current_bug_idx') + 1); $output .= "\n <link rel=\"Next\" href=\"show_bug.cgi?id="; #line 54 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug_list', 0, $stash->get('next_bug'), 0]); $output .= "\">"; } $output .= "\n"; } } $output .= "\n\n "; #line 63 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('attachment') && $stash->get(['attachment', 0, 'bug_id', 0])) { $output .= "\n <link rel=\"Up\" href=\"show_bug.cgi?id="; #line 62 "template\en\default\global\site-navigation.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get(['attachment', 0, 'bug_id', 0]); &$_tt_filter($output); }; $output .= "\">"; } $output .= "\n\n\n "; #line 84 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get('bug')) { $output .= "\n <link rel=\"Show\" title=\"Dependency Tree\"\n href=\"showdependencytree.cgi?id="; #line 69 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "&hide_resolved=1\">"; #line 73 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['Param', [ 'webdotbase' ]])) { $output .= "\n <link rel=\"Show\" title=\"Dependency Graph\"\n href=\"showdependencygraph.cgi?id="; #line 72 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">"; } $output .= "\n"; #line 78 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['bug', 0, 'use_votes', 0])) { $output .= "\n <link rel=\"Show\" title=\"Votes ("; #line 76 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'votes', 0]); $output .= ")\"\n href=\"votes.cgi?action=show_bug&bug_id="; #line 77 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">"; } $output .= "\n\n <link rel=\"Show\" title=\""; #line 80 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " Activity\"\n href=\"show_activity.cgi?id="; #line 81 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">\n <link rel=\"Show\" title=\"Printer-Friendly Version\"\n href=\"show_bug.cgi?format=multiple&id="; #line 83 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">"; } $output .= "\n\n\n "; #line 92 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'showmybugslink', 0])) { #line 89 "template\en\default\global\site-navigation.html.tmpl" # CAPTURE $stash->set('user_login', 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 <link rel=\"Saved Searches\" title=\"My "; #line 90 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output .= "\"\n href=\""; #line 91 "template\en\default\global\site-navigation.html.tmpl" $output .= $stash->get(['Param', [ 'mybugstemplate' ], 'replace', [ '%userid%', $stash->get('user_login') ]]); $output .= "\">"; } $output .= "\n"; #line 98 "template\en\default\global\site-navigation.html.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 <link rel=\"Saved Searches\" \n title=\""; #line 96 "template\en\default\global\site-navigation.html.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 .= "\"\n href=\"buglist.cgi?cmdtype=runnamed&namedcmd="; #line 97 "template\en\default\global\site-navigation.html.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 .= "\">";; ($_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"; #line 106 "template\en\default\global\site-navigation.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['user', 0, 'queries_subscribed', 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 <link rel=\"Saved Search\"\n title=\""; #line 102 "template\en\default\global\site-navigation.html.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 .= " ("; #line 102 "template\en\default\global\site-navigation.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'user', 0, 'login', 0]); &$_tt_filter($output); }; $output .= ")\"\n href=\"buglist.cgi?cmdtype=dorem&remaction=run&namedcmd="; #line 104 "template\en\default\global\site-navigation.html.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 .= "&sharer_id="; #line 105 "template\en\default\global\site-navigation.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['q', 0, 'user', 0, 'id', 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 "; #line 126 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'login', 0])) { $output .= " "; #line 110 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) { $output .= '<link rel="Administration" title="Parameters" href="editparams.cgi">'; } #line 112 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0])) { $output .= '<link rel="Administration" title="Users" href="editusers.cgi">'; } #line 114 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0]) || $stash->get(['user', 0, 'get_products_by_permission', [ 'editcomponents' ], 'size', 0])) { $output .= '<link rel="Administration" title="Products" href="editproducts.cgi">'; } #line 116 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) { $output .= '<link rel="Administration" title="Flag Types" href="editflagtypes.cgi">'; } #line 118 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'creategroups', 0])) { $output .= '<link rel="Administration" title="Groups" href="editgroups.cgi">'; } #line 120 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editkeywords', 0])) { $output .= '<link rel="Administration" title="Keywords" href="editkeywords.cgi">'; } #line 122 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'bz_canusewhines', 0])) { $output .= '<link rel="Administration" title="Whining" href="editwhines.cgi">'; } #line 124 "template\en\default\global\site-navigation.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) { $output .= '<link rel="Administration" title="Sanity Check" href="sanitycheck.cgi">'; } } $output .= " "; } $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 + -