📄 list.atom.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1170452406', 'name' => 'list/list.atom.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"; #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\""; #line 32 "template\en\default\list\list.atom.tmpl" if ($stash->get(['Param', [ 'utf8' ]])) { $output .= " encoding=\"UTF-8\""; } $output .= "?>\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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get('title'); &$_tt_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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['urlquerypart', 0, 'replace', [ 'ctype=atom[&]?', '' ]]); &$_tt_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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get('urlquerypart'); &$_tt_filter($output); }; $output .= "\"/>\n <updated>"; #line 41 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_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 } ]]); &$_tt_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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get('urlquerypart'); &$_tt_filter($output); }; $output .= "</id>\n"; #line 87 "template\en\default\list\list.atom.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('bugs'); 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->{'bug'} = $_tt_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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_id', 0]); &$_tt_filter($output); }; $output .= "] "; #line 48 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$_tt_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 $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'urlbase' ]]); &$_tt_filter($output); }; $output .= "show_bug.cgi?id="; #line 51 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_id', 0]); &$_tt_filter($output); }; $output .= "\"/>\n <id>"; #line 52 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'urlbase' ]]); &$_tt_filter($output); }; $output .= "show_bug.cgi?id="; #line 52 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_id', 0]); &$_tt_filter($output); }; $output .= "</id>\n <author>\n <name>"; #line 54 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'reporter_realname', 0]); &$_tt_filter($output); }; $output .= "</name>\n </author>\n <updated>"; #line 56 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_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 } ]]); &$_tt_filter($output); }; $output .= "</updated> \n <summary type=\"html\">\n "; #line 84 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_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 $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'opendate', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>"; #line 66 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'opendate', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr><tr>\n <td>"; #line 68 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'assigned_to_realname', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>"; #line 69 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to_realname', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr><tr>\n <td>"; #line 71 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'priority', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>"; #line 72 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'priority', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr><tr>\n <td>"; #line 74 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'bug_severity', 0, 'title', 0]); &$_tt_filter($output); }; $output .= " </td>\n <td>"; #line 75 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_severity', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr><tr>\n <td>"; #line 77 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'bug_status', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>"; #line 78 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_status', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr><tr>\n <td>"; #line 80 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['columns', 0, 'changeddate', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td>"; #line 81 "template\en\default\list\list.atom.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'changeddate', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr>\n </table>"; &$_tt_filter($output); }; $output .= "\n </summary>\n </entry>";; ($_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</feed>\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 + -