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

📄 table.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
        my $output = '';        my $_tt_filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'priority', 0]);                &$_tt_filter($output);    };        $output .=  "             bz_";    #line 171 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_status', 0]);                &$_tt_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 $_tt_filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  ("bz_" . $stash->get(['bug', 0, 'resolution', 0]));                &$_tt_filter($output);    };        }        $output .=  "             ";    #line 173 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'secure_mode', 0])) {    $output .=  'bz_secure';    }        $output .=  "             ";    #line 0 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'secure_mode', 0])) {        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  ("bz_secure_mode_" . $stash->get(['bug', 0, 'secure_mode', 0]));                &$_tt_filter($output);    };        }        $output .=  "             ";    #line 175 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get('count') % 2 eq 1 ? 'bz_row_odd' : 'bz_row_even';    $output .=  "             \">\n";    #line 182 "template\en\default\list\table.html.tmpl"    if ($stash->get('dotweak')) {    $output .=  "\n    <td>\n      <input type=\"checkbox\" name=\"id_";    #line 180 "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 name=\"b";    #line 184 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\"\n         href=\"show_bug.cgi?id=";    #line 185 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">";    #line 185 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "</a>\n      <span style=\"display: none\">";    #line 186 "template\en\default\list\table.html.tmpl"    if ($stash->get(['bug', 0, 'secure_mode', 0])) {    $output .=  '[SEC]';    }        $output .=  "</span>\n    </td>\n";    #line 205 "template\en\default\list\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('displaycolumns');                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->{'column'} = $_tt_value;    $output .=  "\n    <td ";    #line 190 "template\en\default\list\table.html.tmpl"    if (! $stash->get(['abbrev', 0, $stash->get('column'), 0, 'wrap', 0])) {    $output .=  'style="white-space: nowrap"';    }        $output .=  ">";    #line 203 "template\en\default\list\table.html.tmpl"    if ($stash->get(['abbrev', 0, $stash->get('column'), 0, 'format_value', 0])) {    $output .=  " ";    #line 192 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_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]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        }    elsif ($stash->get('column') eq 'actual_time' || $stash->get('column') eq 'remaining_time' || $stash->get('column') eq 'estimated_time') {    #line 196 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('formattimeunit', { 'time_unit' => $stash->get(['bug', 0, $stash->get('column'), 0]) });    $output .=  " ";    }    elsif ($stash->get('column') eq 'bug_status') {    #line 198 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['status_descs', 0, $stash->get(['bug', 0, $stash->get('column'), 0]), 0, 'truncate', [ $stash->get(['abbrev', 0, $stash->get('column'), 0, 'maxlength', 0]), $stash->get(['abbrev', 0, $stash->get('column'), 0, 'ellipsis', 0]) ]]);                &$_tt_filter($output);    };        }    elsif ($stash->get('column') eq 'resolution') {    #line 200 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['get_resolution', [ $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]) ]]);                &$_tt_filter($output);    };        }    else {    #line 202 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_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]) ]]);                &$_tt_filter($output);    };        }        $output .=  "\n    </td>";;                ($_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\n  </tr>\n\n  ";    #line 214 "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";;                ($_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";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_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 $_tt_error;                        eval { BLOCK: {        $output .=  "\n  <th colspan=\"";        #line 133 "template\en\default\list\table.html.tmpl"        $output .=  $stash->get('splitheader') ? 2 : 1;        $output .=  "\">";        #line 150 "template\en\default\list\table.html.tmpl"        if ($stash->get('sorted_by_relevance')) {        #line 135 "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 {        #line 143 "template\en\default\list\table.html.tmpl"        if ($stash->get(['column', 0, 'name', 0, 'match', [ '\s+AS\s+' ]])) {        $output .=  "\n        ";        #line 139 "template\en\default\list\table.html.tmpl"        $stash->set(['column', 0, 'sortalias', 0], $stash->get('id'));                }        else {        $output .=  "\n        ";        #line 142 "template\en\default\list\table.html.tmpl"        $stash->set(['column', 0, 'sortalias', 0], $stash->get(['column', 0, 'name', 0]));                }                $output .=  "\n      <a href=\"buglist.cgi?";        #line 144 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('urlquerypart');                        &$_tt_filter($output);        };                $output .=  "&amp;order=";        #line 145 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('url_quote')                      || $context->throw($context->error);                $output .=  $stash->get(['column', 0, 'sortalias', 0]);                        &$_tt_filter($output);        };                #line 0 "template\en\default\list\table.html.tmpl"        if ($stash->get('order')) {                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('url_quote')                      || $context->throw($context->error);                $output .=  ("," . $stash->get('order'));                        &$_tt_filter($output);        };                }                        $output .=  "&amp;query_based_on=";        #line 148 "template\en\default\list\table.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('url_quote')                      || $context->throw($context->error);                $output .=  $stash->get('defaultsavename') || $stash->get('searchname');                        &$_tt_filter($output);        };                $output .=  "\">";        #line 149 "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 ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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