| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1140480723', |
| 'name' => 'list/list.atom.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"; |
| #line 27 "template/en/default/list/list.atom.tmpl" |
| $output .= $context->process('global/variables.none.tmpl'); |
| #line 28 "template/en/default/list/list.atom.tmpl" |
| # USE |
| $stash->set('date', |
| $context->plugin('date')); |
| $output .= "\n"; |
| #line 0 "template/en/default/list/list.atom.tmpl" |
| $stash->set('title', ($stash->get(['terms', 0, 'Bugzilla', 0]) . " " . $stash->get(['terms', 0, 'Bugs', 0])), 1); |
| $output .= "\n\n<?xml version=\"1.0\"?>\n<feed xmlns=\"http://www.w3.org/2005/Atom\">\n <title>"; |
| #line 34 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('title'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</title>\n <link rel=\"alternate\" type=\"text/html\"\n href=\""; |
| #line 36 "template/en/default/list/list.atom.tmpl" |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| $output .= "buglist.cgi?"; |
| #line 37 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['urlquerypart', 0, 'replace', [ 'ctype=atom[&]?', '' ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\"/>\n <link rel=\"self\" type=\"application/atom+xml\"\n href=\""; |
| #line 39 "template/en/default/list/list.atom.tmpl" |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| $output .= "buglist.cgi?"; |
| #line 40 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('urlquerypart'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\"/>\n <updated>"; |
| #line 41 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['date', 0, 'format', [ { 'format' => '%Y-%m-%dT%H:%M:%SZ', 'time' => $stash->get(['bugs', 0, 'nsort', [ 'changedtime' ], 'last', 0, 'changedtime', 0]), 'gmt' => 1 } ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</updated>\n <id>"; |
| #line 44 "template/en/default/list/list.atom.tmpl" |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| $output .= "buglist.cgi?"; |
| #line 44 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('urlquerypart'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</id>\n"; |
| #line 87 "template/en/default/list/list.atom.tmpl" |
| |
| # FOREACH |
| do { |
| my ($value, $error, $oldloop); |
| my $list = $stash->get('bugs'); |
| |
| 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->{'bug'} = $value; |
| $output .= "\n <entry>\n <title>"; |
| #line 48 "template/en/default/list/list.atom.tmpl" |
| if ($stash->get(['bug', 0, 'secure_mode', 0])) { |
| $output .= '@'; |
| } |
| |
| $output .= "["; |
| #line 48 "template/en/default/list/list.atom.tmpl" |
| $output .= $stash->get(['terms', 0, 'Bug', 0]); |
| $output .= " "; |
| #line 48 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "] "; |
| #line 48 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'short_desc', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</title>\n <link rel=\"alternate\" type=\"text/html\"\n href=\""; |
| #line 50 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "show_bug.cgi?id="; |
| #line 51 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\"/>\n <id>"; |
| #line 52 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['Param', [ 'urlbase' ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "show_bug.cgi?id="; |
| #line 52 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'bug_id', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</id>\n <author>\n <name>"; |
| #line 54 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'reporter_realname', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</name>\n </author>\n <updated>"; |
| #line 56 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['date', 0, 'format', [ { 'format' => '%Y-%m-%dT%H:%M:%SZ', 'time' => $stash->get(['bug', 0, 'changedtime', 0]), 'gmt' => 1 } ]]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</updated> \n <summary type=\"html\">\n "; |
| #line 84 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('xml') |
| || $context->throw($context->error); |
| |
| $output .= "\n <table>\n <tr>\n <th>Field</th><th>Value</th>\n </tr><tr>\n <td>"; |
| #line 65 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'opendate', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n <td>"; |
| #line 66 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'opendate', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr><tr>\n <td>"; |
| #line 68 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'assigned_to_realname', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n <td>"; |
| #line 69 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'assigned_to_realname', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr><tr>\n <td>"; |
| #line 71 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'priority', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n <td>"; |
| #line 72 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'priority', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr><tr>\n <td>"; |
| #line 74 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'bug_severity', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= " </td>\n <td>"; |
| #line 75 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'bug_severity', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr><tr>\n <td>"; |
| #line 77 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'bug_status', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n <td>"; |
| #line 78 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'bug_status', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr><tr>\n <td>"; |
| #line 80 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['columns', 0, 'changeddate', 0, 'title', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n <td>"; |
| #line 81 "template/en/default/list/list.atom.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('none') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['bug', 0, 'changeddate', 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "</td>\n </tr>\n </table>"; |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\n </summary>\n </entry>";; |
| ($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</feed>\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |