📄 queue.html.tmpl
字号:
} }; $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"; #line 160 "template\en\default\request\queue.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'display_type' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 174 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'type', 0]); &$_tt_filter($output); }; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'start_new_table' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <h3>"; #line 163 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['column_headers', 0, $stash->get('group_field'), 0]); $output .= ": "; #line 163 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= ($stash->get(['request', 0, $stash->get('group_field'), 0]) || 'None'); &$_tt_filter($output); }; $output .= "</h3>\n <table class=\"requests\" cellspacing=\"0\" cellpadding=\"4\" border=\"1\">\n <tr>"; #line 169 "template\en\default\request\queue.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('display_columns'); 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->{'column'} = $_tt_value; #line 167 "template\en\default\request\queue.html.tmpl" if ($stash->get('column') eq $stash->get('group_field') || $stash->get(['excluded_columns', 0, 'contains', [ $stash->get('column') ]])) { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } $output .= "\n <th>"; #line 168 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['column_headers', 0, $stash->get('column'), 0]); $output .= "</th>";; ($_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>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_bug' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <a href=\"show_bug.cgi?id="; #line 182 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['request', 0, 'bug_id', 0]); $output .= "\">"; #line 183 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['request', 0, 'bug_id', 0]); $output .= ": "; #line 183 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'bug_summary', 0]); &$_tt_filter($output); }; $output .= "</a>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_status' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 178 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['request', 0, 'status', 0]); } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_requester' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 200 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'requester', 0]); &$_tt_filter($output); }; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_attachment' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 192 "template\en\default\request\queue.html.tmpl" if ($stash->get(['request', 0, 'attach_id', 0])) { $output .= "\n <a href=\"attachment.cgi?id="; #line 188 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['request', 0, 'attach_id', 0]); $output .= "&action=edit\">"; #line 189 "template\en\default\request\queue.html.tmpl" $output .= $stash->get(['request', 0, 'attach_id', 0]); $output .= ": "; #line 189 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'attach_summary', 0]); &$_tt_filter($output); }; $output .= "</a>"; } else { $output .= "\n N/A"; } } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_requestee' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 196 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'requestee', 0]); &$_tt_filter($output); }; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'display_created' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 204 "template\en\default\request\queue.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get(['request', 0, 'created', 0]); &$_tt_filter($output); }; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -