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

📄 table.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    $stash->set('count', $stash->get(['loop', 0, 'count', 0]));        #line 163 "template\en\default\list\table.html.tmpl"    if ($stash->get('count') % 10 eq 1) {    $output .=  $stash->get('FLUSH');    }        $output .=  "\n\n  ";    #line 165 "template\en\default\list\table.html.tmpl"    if ($stash->get('count') % 100 eq 1) {    #line 165 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get('tableheader');    }        $output .=  "\n\n  <tr class=\"bz_";    #line 167 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_severity', 0]);                &$filter($output);    };        $output .=  "             bz_";    #line 168 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'priority', 0]);                &$filter($output);    };        $output .=  "             bz_";    #line 169 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_status', 0]);                &$filter($output);    };        $output .=  "             ";    #line 0 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'resolution', 0])) {        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  ("bz_" . $stash->get(['bug', 0, 'resolution', 0]));                &$filter($output);    };        }        $output .=  "             ";    #line 171 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'isingroups', 0])) {    $output .=  'bz_secure';    }        $output .=  "             ";    #line 172 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get('count') % 2 eq 1 ? 'bz_odd' : 'bz_even';    $output .=  "             \">\n             \n";    #line 182 "template\en\default\list\table.html.tmpl"    if ($stash->get('dotweak')) {    $output .=  "\n    <td>\n      <input type=\"checkbox\" name=\"id_";    #line 179 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">\n    </td>";    }        $output .=  "\n    <td class=\"first-child\">\n      <a href=\"show_bug.cgi?id=";    #line 184 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">";    #line 184 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "</a>\n      <span style=\"display: none\">";    #line 185 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'isingroups', 0])) {    $output .=  '[SEC]';    }        $output .=  "</span>\n    </td>\n";    #line 203 "template\en\default\list\table.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('displaycolumns');                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;    $output .=  "\n    <td>";    #line 192 "template\en\default\list\table.html.tmpl"    if (! $stash->get(['abbrev', 0, $stash->get('column'), 0, 'wrap', 0])) {    $output .=  '<nobr>';    }        #line 200 "template\en\default\list\table.html.tmpl"    if ($stash->get(['abbrev', 0, $stash->get('column'), 0, 'format_value', 0])) {    $output .=  " ";    #line 194 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('format', [ $stash->get(['abbrev', 0, $stash->get('column'), 0, 'format_value', 0]) ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, $stash->get('column'), 0]);                &$filter($output);    };                    &$filter($output);    };        }    elsif ($stash->get('column') eq 'actual_time' || $stash->get('column') eq 'remaining_time' || $stash->get('column') eq 'estimated_time') {    #line 197 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, $stash->get('column'), 0]) });    $output .=  " ";    }    else {    #line 199 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, $stash->get('column'), 0, 'truncate', [ $stash->get(['abbrev', 0, $stash->get('column'), 0, 'maxlength', 0]), $stash->get(['abbrev', 0, $stash->get('column'), 0, 'ellipsis', 0]) ]]);                &$filter($output);    };        }        #line 200 "template\en\default\list\table.html.tmpl"    if (! $stash->get(['abbrev', 0, $stash->get('column'), 0, 'wrap', 0])) {    $output .=  '</nobr>';    }        $output .=  "\n    </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\n  </tr>\n\n  ";    #line 212 "template\en\default\list\table.html.tmpl"    if ($stash->get(['loop', 0, 'last', 0]) || $stash->get(['loop', 0, 'count', 0]) % 100 eq 0) {    $output .=  "\n    </table>";    }        $output .=  "\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";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'columnheader' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n  <th colspan=\"";        #line 140 "template\en\default\list\table.html.tmpl"        $output .=  $stash->get('splitheader') ? 2 : 1;        $output .=  "\">";        #line 152 "template\en\default\list\table.html.tmpl"        if ($stash->get('sorted_by_relevance')) {        #line 142 "template\en\default\list\table.html.tmpl"        $output .=  $stash->get(['abbrev', 0, $stash->get('id'), 0, 'title', 0]) || $stash->get(['field_descs', 0, $stash->get('id'), 0]) || $stash->get(['column', 0, 'title', 0]);        }        else {        $output .=  "\n      <a href=\"buglist.cgi?";        #line 144 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('urlquerypart');                        &$filter($output);        };                $output .=  "&amp;order=";        #line 146 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                        # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('url_quote')                      || $context->throw($context->error);                $output .=  $stash->get(['column', 0, 'name', 0]);                        &$filter($output);        };                                &$filter($output);        };                #line 0 "template\en\default\list\table.html.tmpl"        if ($stash->get('order')) {                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  ("," . $stash->get('qorder'));                        &$filter($output);        };                }                        $output .=  "&amp;query_based_on=";        #line 148 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('defaultsavename') || $stash->get('searchname');                        &$filter($output);        };                $output .=  "\">";        #line 150 "template\en\default\list\table.html.tmpl"        $output .=  $stash->get(['abbrev', 0, $stash->get('id'), 0, 'title', 0]) || $stash->get(['field_descs', 0, $stash->get('id'), 0]) || $stash->get(['column', 0, 'title', 0]);        $output .=  "</a>";        }                $output .=  "\n  </th>";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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