📄 table.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1119395330', 'name' => 'list/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"; $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 36 "template\en\default\list\table.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); #line 36 "template\en\default\list\table.html.tmpl" $stash->set(['field_descs', 0, 'short_short_desc', 0], $stash->get(['field_descs', 0, 'short_desc', 0])); #line 36 "template\en\default\list\table.html.tmpl" $stash->set(['field_descs', 0, 'assigned_to_realname', 0], $stash->get(['field_descs', 0, 'assigned_to', 0])); #line 36 "template\en\default\list\table.html.tmpl" $stash->set(['field_descs', 0, 'reporter_realname', 0], $stash->get(['field_descs', 0, 'reporter', 0])); #line 36 "template\en\default\list\table.html.tmpl" $stash->set(['field_descs', 0, 'qa_contact_realname', 0], $stash->get(['field_descs', 0, 'qa_contact', 0])); $output .= "\n"; #line 39 "template\en\default\list\table.html.tmpl" $stash->set('abbrev', { 'bug_severity' => { 'maxlength' => 3, 'title' => 'Sev' }, 'priority' => { 'maxlength' => 3, 'title' => 'Pri' }, 'rep_platform' => { 'maxlength' => 3, 'title' => 'Plt' }, 'bug_status' => { 'maxlength' => 4 }, 'assigned_to' => { 'maxlength' => 30, 'ellipsis' => '...' }, 'assigned_to_realname' => { 'maxlength' => 20, 'ellipsis' => '...' }, 'reporter' => { 'maxlength' => 30, 'ellipsis' => '...' }, 'reporter_realname' => { 'maxlength' => 20, 'ellipsis' => '...' }, 'qa_contact' => { 'maxlength' => 30, 'ellipsis' => '...', 'title' => 'QAContact' }, 'qa_contact_realname' => { 'maxlength' => 20, 'ellipsis' => '...', 'title' => 'QAContact' }, 'resolution' => { 'maxlength' => 4 }, 'short_desc' => { 'wrap' => 1 }, 'short_short_desc' => { 'maxlength' => 60, 'ellipsis' => '...', 'wrap' => 1 }, 'status_whiteboard' => { 'title' => 'StatusSummary', 'wrap' => 1 }, 'component' => { 'maxlength' => 8, 'title' => 'Comp' }, 'product' => { 'maxlength' => 8 }, 'version' => { 'maxlength' => 5, 'title' => 'Vers' }, 'op_sys' => { 'maxlength' => 4 }, 'target_milestone' => { 'title' => 'TargetM' }, 'percentage_complete' => { 'format_value' => '%d %%' } }); $output .= "\n"; #line 65 "template\en\default\list\table.html.tmpl" # CAPTURE $stash->set('qorder', do { my $output = ''; if ($stash->get('order')) { # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('order'); &$filter($output); }; } $output; }); $output .= "\n"; #line 68 "template\en\default\list\table.html.tmpl" $output .= $context->process('bug/time.html.tmpl'); $output .= "\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; #line 136 "template\en\default\list\table.html.tmpl" # CAPTURE $stash->set('tableheader', do { my $output = ''; $output .= "\n <table class=\"bz_buglist\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n <colgroup>"; #line 82 "template\en\default\list\table.html.tmpl" if ($stash->get('dotweak')) { $output .= "\n <col class=\"bz_checkbox_column\">"; } $output .= "\n <col class=\"bz_id_column\">"; #line 88 "template\en\default\list\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('displaycolumns'); 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->{'id'} = $value; $output .= "\n <col class=\"bz_"; #line 86 "template\en\default\list\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('css_class_quote') || $context->throw($context->error); $output .= $stash->get('id'); &$filter($output); }; $output .= "_column\">";; ($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 </colgroup>\n\n <tr align=\"left\">"; #line 96 "template\en\default\list\table.html.tmpl" if ($stash->get('dotweak')) { $output .= "\n <th> </th>"; } $output .= "\n <th colspan=\""; #line 97 "template\en\default\list\table.html.tmpl" $output .= $stash->get('splitheader') ? 2 : 1; $output .= "\" class=\"first-child\">"; #line 111 "template\en\default\list\table.html.tmpl" if ($stash->get('sorted_by_relevance')) { $output .= "\n ID"; } else { $output .= "\n <a href=\"buglist.cgi?"; #line 105 "template\en\default\list\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('urlquerypart'); &$filter($output); }; $output .= "&order=bugs.bug_id"; $output .= "&query_based_on="; #line 109 "template\en\default\list\table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('defaultsavename') || $stash->get('searchname'); &$filter($output); }; $output .= "\">ID</a>"; } $output .= "\n </th>\n"; #line 132 "template\en\default\list\table.html.tmpl" if ($stash->get('splitheader')) { $output .= "\n"; #line 118 "template\en\default\list\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('displaycolumns'); 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->{'id'} = $value; #line 118 "template\en\default\list\table.html.tmpl" if (!($stash->get(['loop', 0, 'count', 0]) % 2 eq 0)) { ($value, $error) = $list->get_next(); next LOOP; } #line 118 "template\en\default\list\table.html.tmpl" $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0])); #line 118 "template\en\default\list\table.html.tmpl" $output .= $context->process('columnheader');; ($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 </tr><tr align=\"left\"><th> </th>\n"; #line 123 "template\en\default\list\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('displaycolumns'); 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->{'id'} = $value; #line 123 "template\en\default\list\table.html.tmpl" if ($stash->get(['loop', 0, 'count', 0]) % 2 eq 0) { ($value, $error) = $list->get_next(); next LOOP; } #line 123 "template\en\default\list\table.html.tmpl" $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0])); #line 123 "template\en\default\list\table.html.tmpl" $output .= $context->process('columnheader');; ($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"; } else { $output .= "\n"; #line 129 "template\en\default\list\table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('displaycolumns'); 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->{'id'} = $value; #line 129 "template\en\default\list\table.html.tmpl" $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0])); #line 129 "template\en\default\list\table.html.tmpl" $output .= $context->process('columnheader');; ($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"; } $output .= "\n\n </tr>"; $output; }); $output .= "\n"; $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; #line 215 "template\en\default\list\table.html.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; #line 163 "template\en\default\list\table.html.tmpl"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -