📄 table.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1102026506', 'name' => 'bug/activity/table.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 37 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 40 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('bug/time.html.tmpl'); $output .= "\n"; #line 52 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get('incomplete_data')) { $output .= "\n <p>\n There used to be an issue in <a href=\"http://www.bugzilla.org/\">Bugzilla</a>\n which caused activity data to be lost if there were a large number of cc's\n or dependencies. That has been fixed, but some data was already lost in\n your activity table that could not be regenerated. The changes that the\n script could not reliably determine are prefixed by '?'.\n </p>"; } $output .= "\n"; #line 111 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['operations', 0, 'size', 0]) > 0) { $output .= "\n <table border cellpadding=\"4\">\n <tr>\n <th>Who</th>\n <th>When</th>\n <th>What</th>\n <th>Removed</th>\n <th>Added</th>\n </tr>\n"; #line 108 "template\en\default\bug\activity\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('operations'); 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->{'operation'} = $value; $output .= "\n <tr>\n <td rowspan=\""; #line 68 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['operation', 0, 'changes', 0, 'size', 0]); $output .= "\" valign=\"top\">"; #line 70 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['operation', 0, 'who', 0]); &$filter($output); }; $output .= "\n </td>\n <td rowspan=\""; #line 72 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['operation', 0, 'changes', 0, 'size', 0]); $output .= "\" valign=\"top\">"; #line 74 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get(['operation', 0, 'when', 0]); &$filter($output); }; $output .= "\n </td>"; #line 105 "template\en\default\bug\activity\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['operation', 0, 'changes', 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->{'change'} = $value; #line 77 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['loop', 0, 'index', 0]) > 0) { $output .= '</tr><tr>'; } $output .= "\n <td>"; #line 84 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'attachid', 0])) { $output .= "\n <a href=\"attachment.cgi?id="; #line 81 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'attachid', 0]); $output .= "&action=view\">\n Attachment #"; #line 82 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'attachid', 0]); $output .= "</a>"; } #line 84 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'field', 0]); $output .= "\n </td>\n <td>"; #line 93 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'removed', 0])) { #line 90 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'fieldname', 0]) eq 'estimated_time' || $stash->get(['change', 0, 'fieldname', 0]) eq 'remaining_time' || $stash->get(['change', 0, 'fieldname', 0]) eq 'work_time') { #line 90 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('formattimeunit', { 'time_unit' => $stash->get(['change', 0, 'removed', 0]) }); } else { #line 90 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'removed', 0]); &$filter($output); }; } } else { $output .= "\n "; } $output .= "\n </td>\n <td>"; #line 102 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'added', 0])) { #line 99 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'fieldname', 0]) eq 'estimated_time' || $stash->get(['change', 0, 'fieldname', 0]) eq 'remaining_time' || $stash->get(['change', 0, 'fieldname', 0]) eq 'work_time') { #line 99 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('formattimeunit', { 'time_unit' => $stash->get(['change', 0, 'added', 0]) }); } else { #line 99 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'added', 0]); &$filter($output); }; } } else { $output .= "\n "; } $output .= "\n </td>";; ($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 </tr>";; ($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 </table>"; } $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -