📄 list.js.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1068314676', 'name' => 'list/list.js.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// Note: only publicly-accessible bugs (those not in any group) will be\n// listed when using this JavaScript format. This is to prevent malicious\n// sites stealing information about secure bugs.\n \nbugs = new Array; \n"; #line 36 "template\en\default\list\list.js.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; $output .= "\n bugs["; #line 30 "template\en\default\list\list.js.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "] = [ "; #line 33 "template\en\default\list\list.js.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->{'column'} = $value; $output .= "\n \""; #line 33 "template\en\default\list\list.js.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['bug', 0, $stash->get('column'), 0]); &$filter($output); }; $output .= "\""; #line 33 "template\en\default\list\list.js.tmpl" if (!($stash->get(['loop', 0, 'last', 0]))) { $output .= ','; } ; ($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 ];";; ($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\nif (window.buglistCallback) {\n buglistCallback(bugs);\n}\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 + -