📄 show-multiple.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1205829200', 'name' => 'attachment/show-multiple.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"; #line 22 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); #line 23 "template\en\default\attachment\show-multiple.html.tmpl" # CAPTURE $stash->set('filtered_summary', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('bugsummary'); &$_tt_filter($output); }; $output; }); #line 25 "template\en\default\attachment\show-multiple.html.tmpl" # CAPTURE $stash->set('header', do { my $output = ''; $output .= "View All Attachments for\n "; #line 0 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('bug_link', [ $stash->get(['bug', 0, 'bug_id', 0]) ]) || $context->throw($context->error); $output .= ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get(['bug', 0, 'bug_id', 0])); &$_tt_filter($output); }; &$_tt_filter($output); }; $output; }); $output .= "\n"; #line 29 "template\en\default\attachment\show-multiple.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "\n View All Attachments for "; #line 28 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " "; #line 28 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_id', 0]); &$_tt_filter($output); }; $output; }); $output .= "\n"; #line 31 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'header' => $stash->get('header'), 'subheader' => $stash->get('filtered_summary') }); $output .= "\n\n<br>\n"; #line 100 "template\en\default\attachment\show-multiple.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('attachments'); 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->{'a'} = $_tt_value; $output .= "\n\n <div align=\"center\">\n <table class=\"attachment_info\" cellspacing=\"0\" cellpadding=\"4\" border=\"1\" width=\"75%\">\n <tr>\n <td valign=\"top\" bgcolor=\"#cccccc\" colspan=\"6\">\n <big><b>Attachment #"; #line 45 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "</b></big>\n </td>\n </tr>\n <tr>\n <td valign=\"top\">"; #line 50 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('obsolete', [ $stash->get(['a', 0, 'isobsolete', 0]) ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'description', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "\n </td>\n\n <td valign=\"top\">"; #line 58 "template\en\default\attachment\show-multiple.html.tmpl" if ($stash->get(['a', 0, 'ispatch', 0])) { $output .= "\n <i>patch</i>"; } else { #line 57 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'contenttype', 0]); &$_tt_filter($output); }; } $output .= "\n </td>\n\n <td valign=\"top\">"; #line 61 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'attached', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td valign=\"top\">"; #line 62 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('unitconvert') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'datasize', 0]); &$_tt_filter($output); }; $output .= "</td>\n\n <td valign=\"top\">"; #line 76 "template\en\default\attachment\show-multiple.html.tmpl" if ($stash->get(['a', 0, 'flags', 0, 'size', 0]) eq 0) { $output .= "\n <i>no flags</i>"; } else { #line 75 "template\en\default\attachment\show-multiple.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['a', 0, 'flags', 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->{'flag'} = $_tt_value; #line 69 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'setter', 0, 'nick', 0]); &$_tt_filter($output); }; $output .= ":\n "; #line 70 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'type', 0, 'name', 0]); &$_tt_filter($output); }; #line 70 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['flag', 0, 'status', 0]); #line 73 "template\en\default\attachment\show-multiple.html.tmpl" if ($stash->get(['flag', 0, 'status', 0]) eq '?' && $stash->get(['flag', 0, 'requestee', 0])) { $output .= "\n ("; #line 72 "template\en\default\attachment\show-multiple.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'requestee', 0, 'nick', 0]); &$_tt_filter($output); }; $output .= ")"; } #line 74 "template\en\default\attachment\show-multiple.html.tmpl" if (! $stash->get(['loop', 0, 'last', 0])) { $output .= ', '; } ; ($_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 </td>\n\n <td valign=\"top\">\n <a href=\"attachment.cgi?id="; #line 80 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "&action=edit\">Details</a>\n </td>\n </tr>\n </table>\n"; #line 95 "template\en\default\attachment\show-multiple.html.tmpl" if ($stash->get(['a', 0, 'isviewable', 0])) { $output .= "\n <iframe src=\"attachment.cgi?id="; #line 86 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "\" width=\"75%\" height=\"350\">\n <b>You cannot view the attachment on this page because your browser does not support IFRAMEs.\n <a href=\"attachment.cgi?id="; #line 88 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "\">View the attachment on a separate page</a>.</b>\n </iframe>"; } else { $output .= "\n <p><b>\n Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*.\n <a href=\"attachment.cgi?id="; #line 93 "template\en\default\attachment\show-multiple.html.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "\">Download the attachment instead</a>.\n </b></p>"; } $output .= "\n </div>\n\n <br><br>\n";; ($_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 102 "template\en\default\attachment\show-multiple.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 + -