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

📄 table.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1208610960',        'name' => 'list/table.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 35 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('global/field-descs.none.tmpl');    #line 36 "template\en\default\list\table.html.tmpl"    $stash->set(['field_descs', 0, 'short_short_desc', 0], $stash->get(['field_descs', 0, 'short_desc', 0]));        #line 37 "template\en\default\list\table.html.tmpl"    $stash->set(['field_descs', 0, 'assigned_to_realname', 0], $stash->get(['field_descs', 0, 'assigned_to', 0]));        #line 38 "template\en\default\list\table.html.tmpl"    $stash->set(['field_descs', 0, 'reporter_realname', 0], $stash->get(['field_descs', 0, 'reporter', 0]));        #line 39 "template\en\default\list\table.html.tmpl"    $stash->set(['field_descs', 0, 'qa_contact_realname', 0], $stash->get(['field_descs', 0, 'qa_contact', 0]));        $output .=  "\n";    #line 41 "template\en\default\list\table.html.tmpl"    $stash->set('abbrev', { 'bug_severity' => { 'maxlength' => 3, 'title' => 'Sev'  }, 'priority' => { 'maxlength' => 3, 'title' => 'Pri'  }, 'rep_platform' => { 'maxlength' => 3, 'title' => 'Plt'  }, 'bug_status' => { 'maxlength' => 4  }, 'assigned_to' => { 'maxlength' => 30, 'ellipsis' => '...'  }, 'assigned_to_realname' => { 'maxlength' => 20, 'ellipsis' => '...'  }, 'reporter' => { 'maxlength' => 30, 'ellipsis' => '...'  }, 'reporter_realname' => { 'maxlength' => 20, 'ellipsis' => '...'  }, 'qa_contact' => { 'maxlength' => 30, 'ellipsis' => '...', 'title' => 'QAContact'  }, 'qa_contact_realname' => { 'maxlength' => 20, 'ellipsis' => '...', 'title' => 'QAContact'  }, 'resolution' => { 'maxlength' => 4  }, 'short_desc' => { 'wrap' => 1  }, 'short_short_desc' => { 'maxlength' => 60, 'ellipsis' => '...', 'wrap' => 1  }, 'status_whiteboard' => { 'title' => 'Whiteboard', 'wrap' => 1  }, 'keywords' => { 'wrap' => 1  }, 'component' => { 'maxlength' => 8, 'title' => 'Comp'  }, 'product' => { 'maxlength' => 8  }, 'version' => { 'maxlength' => 5, 'title' => 'Vers'  }, 'op_sys' => { 'maxlength' => 4  }, 'target_milestone' => { 'title' => 'TargetM'  }, 'percentage_complete' => { 'format_value' => '%d %%'  }  });        $output .=  "\n";    #line 67 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('bug/time.html.tmpl');    $output .=  "\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n";    #line 130 "template\en\default\list\table.html.tmpl"        # CAPTURE    $stash->set('tableheader', do {        my $output = '';    $output .=  "\n  <table class=\"bz_buglist\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n    <colgroup>";    #line 78 "template\en\default\list\table.html.tmpl"    if ($stash->get('dotweak')) {    $output .=  "\n        <col class=\"bz_checkbox_column\">";    }        $output .=  "\n      <col class=\"bz_id_column\">";    #line 82 "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->{'id'} = $_tt_value;    $output .=  "\n      <col class=\"bz_";    #line 81 "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('id');                &$_tt_filter($output);    };        $output .=  "_column\">";;                ($_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    </colgroup>\n\n    <tr align=\"left\">";    #line 88 "template\en\default\list\table.html.tmpl"    if ($stash->get('dotweak')) {    $output .=  "\n      <th>&nbsp;</th>";    }        $output .=  "\n      <th colspan=\"";    #line 89 "template\en\default\list\table.html.tmpl"    $output .=  $stash->get('splitheader') ? 2 : 1;    $output .=  "\" class=\"first-child\">";    #line 97 "template\en\default\list\table.html.tmpl"    if ($stash->get('sorted_by_relevance')) {    $output .=  "\n          ID";    }    else {    $output .=  "\n          <a href=\"buglist.cgi?";    #line 94 "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=bugs.bug_id";        $output .=  "&amp;query_based_on=";    #line 96 "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 .=  "\">ID</a>";    }        $output .=  "\n      </th>\n";    #line 127 "template\en\default\list\table.html.tmpl"    if ($stash->get('splitheader')) {    $output .=  "\n";    #line 106 "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->{'id'} = $_tt_value;    #line 103 "template\en\default\list\table.html.tmpl"    if (!($stash->get(['loop', 0, 'count', 0]) % 2 eq 0)) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        #line 104 "template\en\default\list\table.html.tmpl"    $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0]));        #line 105 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('columnheader');;                ($_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><tr align=\"left\">";    #line 111 "template\en\default\list\table.html.tmpl"    if ($stash->get('dotweak')) {    $output .=  "\n          <th>&nbsp;</th>";    }        $output .=  "\n        <th>&nbsp;</th>\n";    #line 118 "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->{'id'} = $_tt_value;    #line 115 "template\en\default\list\table.html.tmpl"    if ($stash->get(['loop', 0, 'count', 0]) % 2 eq 0) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        #line 116 "template\en\default\list\table.html.tmpl"    $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0]));        #line 117 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('columnheader');;                ($_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";    }    else {    $output .=  "\n";    #line 125 "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->{'id'} = $_tt_value;    #line 123 "template\en\default\list\table.html.tmpl"    $stash->set('column', $stash->get(['columns', 0, $stash->get('id'), 0]));        #line 124 "template\en\default\list\table.html.tmpl"    $output .=  $context->process('columnheader');;                ($_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";    }        $output .=  "\n\n    </tr>";        $output;    });        $output .=  "\n";        $output .=  "\n\n\n";    $output .=  "\n";    $output .=  "\n";    $output .=  "\n";    #line 216 "template\en\default\list\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('bugs');                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->{'bug'} = $_tt_value;    #line 160 "template\en\default\list\table.html.tmpl"    $stash->set('count', $stash->get(['loop', 0, 'count', 0]));        #line 161 "template\en\default\list\table.html.tmpl"    if ($stash->get('count') % 10 eq 1) {    $output .=  $stash->get('FLUSH');    }        $output .=  "\n\n  ";    #line 166 "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_bugitem\n             bz_";    #line 169 "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_severity', 0]);                &$_tt_filter($output);    };        $output .=  "             bz_";    #line 170 "template\en\default\list\table.html.tmpl"        # FILTER    $output .=  do {

⌨️ 快捷键说明

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