📄 list.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1178795652', 'name' => 'admin/custom_fields/list.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 21 "template\en\default\admin\custom_fields\list.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 23 "template\en\default\admin\custom_fields\list.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Custom Fields' }); $output .= "\n"; #line 0 "template\en\default\admin\custom_fields\list.html.tmpl" $stash->set('columns', [ { 'name' => 'name', 'heading' => 'Edit custom field...', 'contentlink' => 'editfields.cgi?action=edit&name=%%name%%' }, { 'name' => 'description', 'heading' => 'Description' }, { 'name' => 'sortkey', 'heading' => 'Sortkey' }, { 'name' => 'type', 'heading' => 'Type' }, { 'name' => 'enter_bug', 'heading' => ("Editable on " . $stash->get(['terms', 0, 'Bug', 0]) . " Creation") }, { 'name' => 'mailhead', 'heading' => ("In " . $stash->get(['terms', 0, 'Bug', 0]) . "mail on " . $stash->get(['terms', 0, 'Bug', 0]) . " Creation") }, { 'name' => 'obsolete', 'heading' => 'Is Obsolete' } ]); $output .= "\n"; #line 58 "template\en\default\admin\custom_fields\list.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 59 "template\en\default\admin\custom_fields\list.html.tmpl" $stash->set('custom_fields', $stash->get(['Bugzilla', 0, 'get_fields', [ { 'custom' => 1 } ]])); $output .= "\n\n"; #line 62 "template\en\default\admin\custom_fields\list.html.tmpl" $stash->set(['overrides', 0, 'type', 0], [ ]); $output .= "\n"; #line 72 "template\en\default\admin\custom_fields\list.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['field_types', 0, 'keys', 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->{'field_type'} = $_tt_value; #line 65 "template\en\default\admin\custom_fields\list.html.tmpl" $output .= $stash->get(['overrides', 0, 'type', 0, 'push', [ { 'match_value' => $stash->get('field_type'), 'match_field' => 'type', 'override_content' => 1, 'content' => $stash->get(['field_types', 0, $stash->get('field_type'), 0]) } ]]);; ($_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"; #line 74 "template\en\default\admin\custom_fields\list.html.tmpl" $output .= $context->process('admin/table.html.tmpl', { 'columns' => $stash->get('columns'), 'overrides' => $stash->get('overrides'), 'data' => $stash->get('custom_fields') }); $output .= "\n\n<p>\n <a href=\"editfields.cgi?action=add\">Add a new custom field</a>\n</p>\n"; #line 84 "template\en\default\admin\custom_fields\list.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -