?? list.html.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1168214030', 'name' => 'admin/fieldvalues/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 27 "template\en\default\admin\fieldvalues\list.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 28 "template\en\default\admin\fieldvalues\list.html.tmpl" $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); $output .= "\n"; #line 30 "template\en\default\admin\fieldvalues\list.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 33 "template\en\default\admin\fieldvalues\list.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Select value for the\n '"; #line 33 "template\en\default\admin\fieldvalues\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$_tt_filter($output); }; $output .= "' field"; $output; }); #line 34 "template\en\default\admin\fieldvalues\list.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title') }); $output .= "\n"; #line 39 "template\en\default\admin\fieldvalues\list.html.tmpl" # CAPTURE $stash->set('edit_contentlink', do { my $output = ''; $output .= "editvalues.cgi?action=edit&field="; #line 39 "template\en\default\admin\fieldvalues\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('field'); &$_tt_filter($output); }; $output .= "&value=%%name%%"; $output; }); #line 41 "template\en\default\admin\fieldvalues\list.html.tmpl" # CAPTURE $stash->set('delete_contentlink', do { my $output = ''; $output .= "editvalues.cgi?action=del&field="; #line 41 "template\en\default\admin\fieldvalues\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('field'); &$_tt_filter($output); }; $output .= "&value=%%name%%"; $output; }); $output .= "\n\n"; #line 44 "template\en\default\admin\fieldvalues\list.html.tmpl" $stash->set('columns', [ { 'name' => 'name', 'heading' => 'Edit field value...', 'contentlink' => $stash->get('edit_contentlink') }, { 'name' => 'sortkey', 'heading' => 'Sortkey' }, { 'name' => 'action', 'heading' => 'Action', 'content' => 'Delete', 'contentlink' => $stash->get('delete_contentlink') } ]); $output .= "\n"; #line 72 "template\en\default\admin\fieldvalues\list.html.tmpl" if ($stash->get(['default', 0, 'defined', 0])) { #line 0 "template\en\default\admin\fieldvalues\list.html.tmpl" $stash->set(['overrides', 0, 'action', 0], [ { 'match_value' => ('' . $stash->get('default')), 'match_field' => 'name', 'override_content' => 1, 'content' => '(Default value)', 'override_contentlink' => 1, 'contentlink' => $stash->get('undef') } ]); } $output .= "\n"; #line 90 "template\en\default\admin\fieldvalues\list.html.tmpl" if ($stash->get(['static', 0, 'size', 0])) { #line 77 "template\en\default\admin\fieldvalues\list.html.tmpl" if (!($stash->get(['overrides', 0, 'action', 0, 'size', 0]))) { #line 76 "template\en\default\admin\fieldvalues\list.html.tmpl" $stash->set(['overrides', 0, 'action', 0], [ ]); } $output .= "\n"; #line 89 "template\en\default\admin\fieldvalues\list.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('static'); 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->{'static_value'} = $_tt_value; #line 0 "template\en\default\admin\fieldvalues\list.html.tmpl" $output .= $stash->get(['overrides', 0, 'action', 0, 'push', [ { 'match_value' => ('' . $stash->get('static_value')), 'match_field' => 'name', 'override_content' => 1, 'content' => '(Non-deletable value)', 'override_contentlink' => 1, 'contentlink' => $stash->get('undef') } ]]);; ($_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 92 "template\en\default\admin\fieldvalues\list.html.tmpl" $output .= $context->process('admin/table.html.tmpl', { 'columns' => $stash->get('columns'), 'data' => $stash->get('values'), 'overrides' => $stash->get('overrides') }); $output .= "\n"; #line 98 "template\en\default\admin\fieldvalues\list.html.tmpl" $output .= $context->process('admin/fieldvalues/footer.html.tmpl', { 'no_edit_other_link' => 1 }); $output .= "\n"; #line 102 "template\en\default\admin\fieldvalues\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 + -