⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show-multiple.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1085932334',        '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 $error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n";    #line 23 "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 $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('bugsummary');                &$filter($output);    };            $output;    });        #line 24 "template\en\default\attachment\show-multiple.html.tmpl"        # CAPTURE    $stash->set('h1', do {        my $output = '';    $output .=  "View All Attachments for\n  ";    #line 0 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['GetBugLink', [ $stash->get('bugid'), ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get('bugid')) ]]);        $output;    });        #line 0 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => ("View All Attachments for " . $stash->get(['terms', 0, 'Bug', 0]) . " #" . $stash->get('bugid')), 'h1' => $stash->get('h1'), 'h2' => $stash->get('filtered_summary'), 'style' => '        table.attachment_info th { text-align: right; vertical-align: top; }        table.attachment_info td { text-align: left; vertical-align: top; }      ' });    $output .=  "\n\n<br>\n";    #line 102 "template\en\default\attachment\show-multiple.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('attachments');                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->{'a'} = $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 43 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['a', 0, 'attachid', 0]);    $output .=  "</b></big>\n      </td>\n    </tr>\n    <tr>\n      <td valign=\"top\">";    #line 49 "template\en\default\attachment\show-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('obsolete', [ $stash->get(['a', 0, 'isobsolete', 0]) ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['a', 0, 'description', 0]);                &$filter($output);    };                    &$filter($output);    };        $output .=  "\n      </td>\n\n      <td valign=\"top\">";    #line 57 "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 $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['a', 0, 'contenttype', 0]);                &$filter($output);    };        }        $output .=  "\n      </td>\n\n      <td valign=\"top\">";    #line 60 "template\en\default\attachment\show-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('time')                  || $context->throw($context->error);        $output .=  $stash->get(['a', 0, 'date', 0]);                &$filter($output);    };        $output .=  "</td>\n      <td valign=\"top\">";    #line 61 "template\en\default\attachment\show-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('unitconvert')                  || $context->throw($context->error);        $output .=  $stash->get(['a', 0, 'datasize', 0]);                &$filter($output);    };        $output .=  "</td>\n\n      <td valign=\"top\">";    #line 74 "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 74 "template\en\default\attachment\show-multiple.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['a', 0, 'flags', 0]);                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->{'flag'} = $value;    #line 70 "template\en\default\attachment\show-multiple.html.tmpl"    if ($stash->get(['flag', 0, 'setter', 0])) {    #line 68 "template\en\default\attachment\show-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'setter', 0, 'nick', 0]);                &$filter($output);    };        $output .=  ":";    }        $output .=  "\n            ";    #line 71 "template\en\default\attachment\show-multiple.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'type', 0, 'name', 0]);                &$filter($output);    };        #line 71 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['flag', 0, 'status', 0]);    #line 74 "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 $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'requestee', 0, 'nick', 0]);                &$filter($output);    };        $output .=  ")";    }        #line 74 "template\en\default\attachment\show-multiple.html.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      </td>\n\n      <td valign=\"top\">\n        <a href=\"attachment.cgi?id=";    #line 78 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['a', 0, 'attachid', 0]);    $output .=  "&amp;action=edit\">Edit</a>\n      </td>\n    </tr>\n  </table>\n";    #line 96 "template\en\default\attachment\show-multiple.html.tmpl"    if ($stash->get(['a', 0, 'isviewable', 0])) {    $output .=  "\n    <iframe src=\"attachment.cgi?id=";    #line 85 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['a', 0, 'attachid', 0]);    $output .=  "&amp;action=view\" 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 87 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $stash->get(['a', 0, 'attachid', 0]);    $output .=  "&amp;action=view\">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, 'attachid', 0]);    $output .=  "&amp;action=view\">Download the attachment instead</a>.\n    </b></p>";    }        $output .=  "\n  </div>\n\n  <br><br>\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";    #line 105 "template\en\default\attachment\show-multiple.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\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 + -