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

📄 summarize-time.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 3 页
字号:
        do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get('keys');                        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 146 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('do_one_bug', { 'bug' => $stash->get('bug'), 'bugdata' => $stash->get(['workdata', 0, $stash->get('bug'), 0]), 'detailed' => $stash->get('detailed') });;                    ($_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";        #line 1 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('additional', ($stash->get(['global', 0, 'bug_count', 0, 'size', 0]) . " " . $stash->get(['terms', 0, 'bugs', 0]) . " &amp; \n                     " . $stash->get(['global', 0, 'owner_count', 0, 'size', 0]) . " developers"));                #line 152 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('section_total', { 'additional' => $stash->get('additional'), 'colspan' => 2 });        $output .=  "\n    </table>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },        'inactive_report' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        $output .=  "\n    <h3>Inactive ";        #line 204 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $stash->get(['terms', 0, 'bugs', 0]);        $output .=  "</h3>\n    <table cellpadding=\"4\" cellspacing=\"0\" width=\"90%\" class=\"zeroitems\">";        #line 206 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('cid', 0);                #line 211 "template\en\default\bug\summarize-time.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get(['null', 0, 'keys', 0, 'nsort', 0]);                        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_id'} = $_tt_value;        #line 208 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('bug_header', { 'id' => $stash->get('bug_id'), 'bug_status' => $stash->get(['null', 0, $stash->get('bug_id'), 0, 1, 0]), 'short_desc' => $stash->get(['null', 0, $stash->get('bug_id'), 0, 0, 0]), 'cid' => $stash->get('cid') });        #line 210 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('cid', $stash->get('cid') + 1);        ;                    ($_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    </table>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },        'owner_report' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        #line 92 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'total', 0], 0);        $stash->set(['global', 0, 'bug_count', 0], {   });        $stash->set(['global', 0, 'owner_count', 0], {   });                $output .=  "\n    <table cellpadding=\"4\" cellspacing=\"0\" width=\"90%\" class=\"realitems owner\">";        #line 97 "template\en\default\bug\summarize-time.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get(['workdata', 0, 'keys', 0, 'sort', 0]);                        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->{'owner'} = $_tt_value;        #line 95 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('do_one_owner', { 'owner' => $stash->get('owner'), 'ownerdata' => $stash->get(['workdata', 0, $stash->get('owner'), 0]), 'detailed' => $stash->get('detailed') });;                    ($_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";        #line 1 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('additional', ($stash->get(['global', 0, 'owner_count', 0, 'size', 0]) . " developers \@\n                     " . $stash->get(['global', 0, 'bug_count', 0, 'size', 0]) . " " . $stash->get(['terms', 0, 'bugs', 0])));                $output .=  " ";        #line 101 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('section_total', { 'colspan' => 3, 'additional' => $stash->get('additional') });        $output .=  "\n    </table>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },        'do_one_owner' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        #line 106 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'owner_count', 0, $stash->get('owner'), 0], 1);                $output .=  "\n    <tr><td colspan=\"5\" class=\"owner_header\">\n        <b>";        #line 108 "template\en\default\bug\summarize-time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('owner');                        &$_tt_filter($output);        };                $output .=  "</b>\n    </td></tr>";        #line 110 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('col', 0);        $stash->set('subtotal', 0);                #line 122 "template\en\default\bug\summarize-time.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get(['ownerdata', 0, 'nsort', [ 'bug_id' ]]);                        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->{'bugdata'} = $_tt_value;        #line 112 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('bug_id', $stash->get(['bugdata', 0, 'bug_id', 0]));                #line 113 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'bug_count', 0, $stash->get('bug_id'), 0], 1);                #line 120 "template\en\default\bug\summarize-time.html.tmpl"        if ($stash->get('detailed')) {        $output .=  "\n            ";        #line 116 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('timerow', '<td width="100" align="right" valign="top">'  . $stash->get(['bugdata', 0, 'total_time', 0])  . '</td>');                #line 117 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('bug_header', { 'cid' => $stash->get('col'), 'id' => $stash->get('bug_id'), 'bug_status' => $stash->get(['bugdata', 0, 'bug_status', 0]), 'short_desc' => $stash->get(['bugdata', 0, 'short_desc', 0]), 'extra' => $stash->get('timerow') });        #line 119 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('col', $stash->get('col') + 1);                }                #line 121 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('subtotal', $stash->get('subtotal') + $stash->get(['bugdata', 0, 'total_time', 0]));        ;                    ($_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    <tr>\n      <td colspan=\"3\">&nbsp;</td>\n      <td align=\"right\">\n      <b>Total</b>:\n      </td>\n      <td align=\"right\" class=\"subtotal\" width=\"100\">\n        <b>";        #line 129 "template\en\default\bug\summarize-time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('format', [ '%.2f' ])                      || $context->throw($context->error);                $output .=  $stash->get('subtotal');                        &$_tt_filter($output);        };                $output .=  "</b></td>";        #line 130 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'total', 0], $stash->get(['global', 0, 'total', 0]) + $stash->get('subtotal'));                $output .=  "\n    </tr>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },        'bug_header' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        $output .=  "\n    <tr class=\"bug_header";        #line 193 "template\en\default\bug\summarize-time.html.tmpl"        if ($stash->get('cid') % 2) {        $output .=  '2';        }                $output .=  "\">\n        <td width=\"10\" valign=\"top\">";        #line 195 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('buglink', { 'id' => $stash->get('id') });        $output .=  "</td>\n        <td width=\"10\"><b>";        #line 196 "template\en\default\bug\summarize-time.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_status'), 0]);                        &$_tt_filter($output);        };                $output .=  "</b></td>\n        <td colspan=\"2\">";        #line 197 "template\en\default\bug\summarize-time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('short_desc');                        &$_tt_filter($output);        };                $output .=  "</td>";        #line 198 "template\en\default\bug\summarize-time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('none')                      || $context->throw($context->error);                $output .=  $stash->get('extra');                        &$_tt_filter($output);        };                $output .=  "\n    </tr>";            } };            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 + -