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

📄 queue.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    #line 163 "template\en\default\request\queue.html.tmpl"    if (!($stash->get(['loop', 0, 'first', 0]))) {    $output .=  "\n        </table>";    #line 163 "template\en\default\request\queue.html.tmpl"    $output .=  $context->process('start_new_table');    }        }        $output .=  "\n    <tr>";    #line 169 "template\en\default\request\queue.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('display_columns');                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->{'column'} = $value;    #line 166 "template\en\default\request\queue.html.tmpl"    if ($stash->get('column') eq $stash->get('group_field') || $stash->get(['excluded_columns', 0, 'contains', [ $stash->get('column') ]])) {    ($value, $error) = $list->get_next();    next LOOP;        }        $output .=  "\n        <td>";    #line 0 "template\en\default\request\queue.html.tmpl"    $output .=  $context->process(("display_" . $stash->get('column')));    $output .=  "</td>";;                ($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    </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  </table>";    }        $output .=  "\n";    #line 178 "template\en\default\request\queue.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'display_type' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 195 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'type', 0]);                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'start_new_table' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n  <h3>";        #line 182 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['column_headers', 0, $stash->get('group_field'), 0]);        $output .=  ": ";        #line 182 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  ($stash->get(['request', 0, $stash->get('group_field'), 0]) || 'None');                        &$filter($output);        };                $output .=  "</h3>\n  <table class=\"requests\" cellspacing=\"0\" cellpadding=\"4\" border=\"1\">\n    <tr>";        #line 189 "template\en\default\request\queue.html.tmpl"                # FOREACH         do {            my ($value, $error, $oldloop);            my $list = $stash->get('display_columns');                        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->{'column'} = $value;        #line 186 "template\en\default\request\queue.html.tmpl"        if ($stash->get('column') eq $stash->get('group_field') || $stash->get(['excluded_columns', 0, 'contains', [ $stash->get('column') ]])) {        ($value, $error) = $list->get_next();        next LOOP;                }                $output .=  "\n        <th>";        #line 187 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['column_headers', 0, $stash->get('column'), 0]);        $output .=  "</th>";;                    ($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    </tr>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_bug' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n  <a href=\"show_bug.cgi?id=";        #line 202 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['request', 0, 'bug_id', 0]);        $output .=  "\">";        #line 204 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['request', 0, 'bug_id', 0]);        $output .=  ": ";        #line 204 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'bug_summary', 0]);                        &$filter($output);        };                $output .=  "</a>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_status' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 198 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['request', 0, 'status', 0]);            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_requester' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 223 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'requester', 0]);                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_attachment' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 217 "template\en\default\request\queue.html.tmpl"        if ($stash->get(['request', 0, 'attach_id', 0])) {        $output .=  "\n    <a href=\"attachment.cgi?id=";        #line 210 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['request', 0, 'attach_id', 0]);        $output .=  "&amp;action=edit\">";        #line 212 "template\en\default\request\queue.html.tmpl"        $output .=  $stash->get(['request', 0, 'attach_id', 0]);        $output .=  ": ";        #line 212 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'attach_summary', 0]);                        &$filter($output);        };                $output .=  "</a>";        }        else {        $output .=  "\n    N/A";        }                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_requestee' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 220 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'requestee', 0]);                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'display_created' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 226 "template\en\default\request\queue.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('time')                      || $context->throw($context->error);                $output .=  $stash->get(['request', 0, 'created', 0]);                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -