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

📄 list.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1094768708',        'name' => 'attachment/list.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\n<br>\n<table cellspacing=\"0\" cellpadding=\"4\" border=\"1\">\n  <tr>\n    <th bgcolor=\"#cccccc\" align=\"left\">Attachment</th>\n    <th bgcolor=\"#cccccc\" align=\"left\">Type</th>\n    <th bgcolor=\"#cccccc\" align=\"left\">Created</th>\n    <th bgcolor=\"#cccccc\" align=\"left\">Size</th>";    #line 33 "template\en\default\attachment\list.html.tmpl"    if ($stash->get('show_attachment_flags')) {    $output .=  "\n      <th bgcolor=\"#cccccc\" align=\"left\">Flags</th>";    }        $output .=  "\n    <th bgcolor=\"#cccccc\" align=\"left\">Actions</th>\n  </tr>";    #line 37 "template\en\default\attachment\list.html.tmpl"    $stash->set('canseeprivate', ! $stash->get(['Param', [ 'insidergroup' ]]) || $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]]));        #line 90 "template\en\default\attachment\list.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->{'attachment'} = $value;    #line 90 "template\en\default\attachment\list.html.tmpl"    if (! $stash->get(['attachment', 0, 'isprivate', 0]) || $stash->get('canseeprivate')) {    $output .=  "\n    <tr ";    #line 38 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'isprivate', 0])) {    $output .=  ('' . "class=\"bz_private\"");    }        $output .=  ">\n      <td valign=\"top\">\n        <a href=\"attachment.cgi?id=";    #line 40 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'attachid', 0]);    $output .=  "\">";    #line 40 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('obsolete', [ $stash->get(['attachment', 0, 'isobsolete', 0]) ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'description', 0]);                &$filter($output);    };                    &$filter($output);    };        $output .=  "</a>\n      </td>\n\n      <td valign=\"top\">";    #line 48 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'ispatch', 0])) {    $output .=  "\n          <i>patch</i>";    }    else {    #line 48 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'contenttype', 0]);                &$filter($output);    };        }        $output .=  "\n      </td>\n\n      <td valign=\"top\">";    #line 51 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('time')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'date', 0]);                &$filter($output);    };        $output .=  "</td>\n      <td valign=\"top\">";    #line 52 "template\en\default\attachment\list.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('unitconvert')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'datasize', 0]);                &$filter($output);    };        $output .=  "</td>\n";    #line 73 "template\en\default\attachment\list.html.tmpl"    if ($stash->get('show_attachment_flags')) {    $output .=  "\n        <td valign=\"top\">";    #line 70 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'flags', 0, 'size', 0]) eq 0) {    $output .=  "\n            <i>none</i>";    }    else {    #line 70 "template\en\default\attachment\list.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['attachment', 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 63 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['flag', 0, 'setter', 0])) {    #line 61 "template\en\default\attachment\list.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 64 "template\en\default\attachment\list.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 64 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['flag', 0, 'status', 0]);    $output .=  "\n                ";    #line 68 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['flag', 0, 'status', 0]) eq '?' && $stash->get(['flag', 0, 'requestee', 0])) {    $output .=  "\n                  (";    #line 66 "template\en\default\attachment\list.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 .=  ")";    }        $output .=  "<br>";;                ($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>";    }        $output .=  "\n      \n      <td valign=\"top\">";    #line 80 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'canedit', 0])) {    $output .=  "\n          <a href=\"attachment.cgi?id=";    #line 78 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'attachid', 0]);    $output .=  "&amp;action=edit\">Edit</a>";    }        #line 86 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'ispatch', 0]) && $stash->get('patchviewerinstalled')) {    #line 83 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachment', 0, 'canedit', 0])) {    $output .=  "\n            |";    }        $output .=  "\n          <a href=\"attachment.cgi?id=";    #line 84 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'attachid', 0]);    $output .=  "&amp;action=diff\">Diff</a>";    }        $output .=  "\n      </td>\n    </tr>";    }    ;                ($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\n  <tr>\n    <td colspan=\"";    #line 93 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('show_attachment_flags') ? 5 : 4;    $output .=  "\">\n      <a href=\"attachment.cgi?bugid=";    #line 94 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('bugid');    $output .=  "&amp;action=enter\">Create a New Attachment</a> (proposed patch, testcase, etc.)\n    </td>";    #line 107 "template\en\default\attachment\list.html.tmpl"    if ($stash->get(['attachments', 0, 'size', 0])) {    $output .=  "\n      <td>\n        <a href=\"attachment.cgi?bugid=";    #line 99 "template\en\default\attachment\list.html.tmpl"    $output .=  $stash->get('bugid');    $output .=  "&amp;action=viewall\">View All</a>\n      </td>";    }    else {    $output .=  "\n      <td class=\"bz_disabled\">\n        View All\n      </td>";    }        $output .=  "\n  </tr>\n</table>\n<br>\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 + -