?? table.html.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1207095790', '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 $_tt_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'); #line 38 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 40 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('bug/time.html.tmpl'); $output .= "\n"; #line 50 "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 123 "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 121 "template\en\default\bug\activity\table.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('operations'); 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->{'operation'} = $_tt_value; $output .= "\n <tr>\n <td rowspan=\""; #line 64 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['operation', 0, 'changes', 0, 'size', 0]); $output .= "\" valign=\"top\">"; #line 65 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['operation', 0, 'who', 0]); &$_tt_filter($output); }; $output .= "\n </td>\n <td rowspan=\""; #line 67 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['operation', 0, 'changes', 0, 'size', 0]); $output .= "\" valign=\"top\">"; #line 68 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get(['operation', 0, 'when', 0]); &$_tt_filter($output); }; $output .= "\n </td>"; #line 119 "template\en\default\bug\activity\table.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['operation', 0, 'changes', 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->{'change'} = $_tt_value; #line 71 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['loop', 0, 'index', 0]) > 0) { $output .= '</tr><tr>'; } $output .= "\n <td>"; #line 76 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'attachid', 0])) { $output .= "\n <a href=\"attachment.cgi?id="; #line 74 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'attachid', 0]); $output .= "\">\n Attachment #"; #line 75 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'attachid', 0]); $output .= "</a>"; } $output .= "\n "; #line 77 "template\en\default\bug\activity\table.html.tmpl" $output .= $stash->get(['change', 0, 'field', 0]); $output .= "\n </td>\n <td>"; #line 97 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'removed', 0, 'defined', 0])) { #line 94 "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 84 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('formattimeunit', { 'time_unit' => $stash->get(['change', 0, 'removed', 0]) }); } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'bug_status') { #line 86 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get(['change', 0, 'removed', 0]), 0]); &$_tt_filter($output); }; } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'resolution') { #line 88 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get(['change', 0, 'removed', 0]) ]]); &$_tt_filter($output); }; } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'blocked' || $stash->get(['change', 0, 'fieldname', 0]) eq 'dependson') { #line 91 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('bug_list_link') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'removed', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; } else { #line 93 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'removed', 0]); &$_tt_filter($output); }; } } else { $output .= "\n "; } $output .= "\n </td>\n <td>"; #line 117 "template\en\default\bug\activity\table.html.tmpl" if ($stash->get(['change', 0, 'added', 0, 'defined', 0])) { #line 114 "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 104 "template\en\default\bug\activity\table.html.tmpl" $output .= $context->process('formattimeunit', { 'time_unit' => $stash->get(['change', 0, 'added', 0]) }); } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'bug_status') { #line 106 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get(['change', 0, 'added', 0]), 0]); &$_tt_filter($output); }; } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'resolution') { #line 108 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get(['change', 0, 'added', 0]) ]]); &$_tt_filter($output); }; } elsif ($stash->get(['change', 0, 'fieldname', 0]) eq 'blocked' || $stash->get(['change', 0, 'fieldname', 0]) eq 'dependson') { #line 111 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('bug_list_link') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'added', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; } else { #line 113 "template\en\default\bug\activity\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['change', 0, 'added', 0]); &$_tt_filter($output); }; } } else { $output .= "\n "; } $output .= "\n </td>";; ($_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 </tr>";; ($_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 </table>"; } $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -