| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| '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 $error; |
| |
| eval { BLOCK: { |
| $output .= "\n"; |
| $output .= "\n\n"; |
| $output .= "\n"; |
| #line 28 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $context->process('global/variables.none.tmpl'); |
| $output .= "\n"; |
| #line 30 "template/en/custom/global/site-navigation.html.tmpl" |
| # USE |
| $stash->set('Bugzilla', |
| $context->plugin('Bugzilla')); |
| #line 31 "template/en/custom/global/site-navigation.html.tmpl" |
| $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); |
| $output .= "\n"; |
| #line 112 "template/en/custom/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/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| $output .= "\">\n\n "; |
| #line 58 "template/en/custom/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/custom/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/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug_list', 0, 'last', 0]); |
| $output .= "\">\n"; |
| #line 43 "template/en/custom/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/custom/global/site-navigation.html.tmpl" |
| if ($stash->get('current_bug_idx') ne -1) { |
| $output .= "\n"; |
| #line 50 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get('current_bug_idx') > 0) { |
| #line 48 "template/en/custom/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/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug_list', 0, $stash->get('prev_bug'), 0]); |
| $output .= "\">"; |
| } |
| |
| $output .= "\n"; |
| #line 55 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get('current_bug_idx') + 1 < $stash->get(['bug_list', 0, 'size', 0])) { |
| #line 53 "template/en/custom/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/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug_list', 0, $stash->get('next_bug'), 0]); |
| $output .= "\">"; |
| } |
| |
| $output .= "\n"; |
| } |
| |
| } |
| |
| $output .= "\n\n\n "; |
| #line 77 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get('bug')) { |
| $output .= "\n <link rel=\"Show\" title=\"Dependency Tree\"\n href=\"showdependencytree.cgi?id="; |
| #line 64 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| $output .= "\">\n <link rel=\"Show\" title=\"Dependency Graph\"\n href=\"showdependencygraph.cgi?id="; |
| #line 66 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| $output .= "\">\n"; |
| #line 71 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get('use_votes')) { |
| $output .= "\n <link rel=\"Show\" title=\"Votes ("; |
| #line 69 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug', 0, 'votes', 0]); |
| $output .= ")\"\n href=\"votes.cgi?action=show_bug&bug_id="; |
| #line 70 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| $output .= "\">"; |
| } |
| |
| $output .= "\n\n <link rel=\"Show\" title=\""; |
| #line 73 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'Bug', 0]); |
| $output .= " Activity\"\n href=\"show_activity.cgi?id="; |
| #line 74 "template/en/custom/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 76 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| $output .= "\">"; |
| } |
| |
| $output .= "\n\n\n "; |
| #line 85 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'showmybugslink', 0])) { |
| #line 82 "template/en/custom/global/site-navigation.html.tmpl" |
| |
| # CAPTURE |
| $stash->set('user_login', do { |
| my $output = ''; |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('url_quote') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['user', 0, 'login', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output; |
| }); |
| |
| $output .= "\n <link rel=\"Saved Searches\" title=\"My "; |
| #line 83 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'Bugs', 0]); |
| $output .= "\"\n href=\""; |
| #line 84 "template/en/custom/global/site-navigation.html.tmpl" |
| $output .= $stash->get(['Param', [ 'mybugstemplate' ], 'replace', [ '%userid%', $stash->get('user_login') ]]); |
| $output .= "\">"; |
| } |
| |
| $output .= "\n"; |
| #line 91 "template/en/custom/global/site-navigation.html.tmpl" |
| |
| # FOREACH |
| do { |
| my ($value, $error, $oldloop); |
| my $list = $stash->get(['user', 0, 'queries', 0]); |
| |
| 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->{'q'} = $value; |
| $output .= "\n <link rel=\"Saved Searches\" \n title=\""; |
| #line 89 "template/en/custom/global/site-navigation.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['q', 0, 'name', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\"\n href=\"buglist.cgi?cmdtype=runnamed&namedcmd="; |
| #line 90 "template/en/custom/global/site-navigation.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('url_quote') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['q', 0, 'name', 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 "; |
| #line 111 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'login', 0])) { |
| $output .= " "; |
| #line 95 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) { |
| $output .= '<link rel="Administration" title="Parameters" |
| href="editparams.cgi">'; |
| } |
| |
| #line 97 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0])) { |
| $output .= '<link rel="Administration" title="Users" |
| href="editusers.cgi">'; |
| } |
| |
| #line 99 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'editcomponents', 0])) { |
| $output .= '<link rel="Administration" title="Products" |
| href="editproducts.cgi">'; |
| } |
| |
| #line 101 "template/en/custom/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 103 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'creategroups', 0])) { |
| $output .= '<link rel="Administration" title="Groups" |
| href="editgroups.cgi">'; |
| } |
| |
| #line 105 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'editkeywords', 0])) { |
| $output .= '<link rel="Administration" title="Keywords" |
| href="editkeywords.cgi">'; |
| } |
| |
| #line 107 "template/en/custom/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 109 "template/en/custom/global/site-navigation.html.tmpl" |
| if ($stash->get(['user', 0, 'groups', 0, 'tweakparams', 0])) { |
| $output .= '<link rel="Administration" title="Sanity Check" |
| href="sanitycheck.cgi">'; |
| } |
| |
| } |
| |
| $output .= " "; |
| } |
| |
| $output .= "\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |