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

📄 summarize-time.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 3 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1190151664',        'name' => 'bug/summarize-time.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";    #line 17 "template\en\default\bug\summarize-time.html.tmpl"    # USE    $stash->set('date',                $context->plugin('date'));    $output .=  "\n";    #line 19 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->process('global/field-descs.none.tmpl');    $output .=  "\n";    #line 21 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('title', 'Time Summary ');        #line 30 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get('do_depends')) {    #line 23 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('title', $stash->get('title')  . 'for ');        #line 0 "template\en\default\bug\summarize-time.html.tmpl"        # CAPTURE    $stash->set('header', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('none')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('bug_link', [ $stash->get(['ids', 0, 0, 0]) ])                  || $context->throw($context->error);        $output .=  $stash->get('title')  . ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get(['ids', 0, 0, 0]));                &$_tt_filter($output);    };                    &$_tt_filter($output);    };            $output;    });        #line 0 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('title', $stash->get('title')  . ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get(['ids', 0, 0, 0]) . ": "));        #line 0 "template\en\default\bug\summarize-time.html.tmpl"        # CAPTURE    $stash->set('header', do {        my $output = '';    if ($stash->get('do_depends')) {    $output .=  ($stash->get('header')  . (" (and " . $stash->get(['terms', 0, 'bugs', 0]) . " blocking it)"));    }            $output;    });        }    else {    #line 0 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('title', $stash->get('title')  . ("(" . $stash->get(['ids', 0, 'size', 0]) . " " . $stash->get(['terms', 0, 'bugs', 0]) . " selected)"));        #line 29 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('header', $stash->get('title'));        }        $output .=  "\n";    #line 32 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'header' => $stash->get('header'), 'style_urls' => [ 'skins/standard/summarize-time.css' ] });    $output .=  "\n";    #line 81 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get(['ids', 0, 'size', 0]) eq 0) {    $output .=  "\n\n    <p>No ";    #line 40 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " specified or visible.</p>\n";    }    else {    $output .=  "\n";    #line 44 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->include('query_form');    $output .=  "\n";    #line 79 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get('do_report')) {    $output .=  "\n";    #line 48 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set(['global', 0, 'grand_total', 0], 0);        $output .=  "\n";    #line 66 "template\en\default\bug\summarize-time.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('part_list');                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->{'workdata'} = $_tt_value;    #line 51 "template\en\default\bug\summarize-time.html.tmpl"    $stash->set('part', $stash->get(['parts', 0, 'shift', 0]));        $output .=  "\n            <div align=\"right\">\n              <h4 style=\"padding-right: 2em; margin: 0;\">";    #line 58 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get(['part', 0, 0, 0]) || $stash->get(['part', 0, 1, 0])) {    #line 55 "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(['part', 0, 0, 0]) || 'Up';                &$_tt_filter($output);    };        $output .=  " to ";    #line 55 "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(['part', 0, 1, 0]) || 'now';                &$_tt_filter($output);    };        }    else {    $output .=  "\n               Full summary (no period specified)";    }        $output .=  "\n              </h4>\n            </div>";    #line 65 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get('group_by') eq 'number') {    #line 62 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->include('number_report');    }    else {    #line 64 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->include('owner_report');    }    ;                ($_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 71 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get('monthly')) {    $output .=  "\n            <h4 style=\"margin: 0\">Total of ";    #line 69 "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(['global', 0, 'grand_total', 0]);                &$_tt_filter($output);    };        $output .=  " hours worked</h4>\n            <hr noshade size=\"1\">";    }        $output .=  "\n";    #line 77 "template\en\default\bug\summarize-time.html.tmpl"    if ($stash->get(['null', 0, 'keys', 0, 'size', 0]) > 0) {    $output .=  " ";    #line 74 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->include('inactive_report');    $output .=  "\n            <h4 style=\"margin: 0\">Total of ";    #line 75 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $stash->get(['null', 0, 'keys', 0, 'size', 0]);    $output .=  "\n                inactive ";    #line 76 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  "</h4>";    }        $output .=  "\n";    }        $output .=  "\n";    }        $output .=  "\n";    #line 83 "template\en\default\bug\summarize-time.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n\n";    $output .=  "\n";        $output .=  "\n";        $output .=  "\n\n";    $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n\n";        $output .=  "\n\n";        $output .=  "\n\n";    $output .=  "\n";        $output .=  "\n\n";    $output .=  "\n";        $output .=  "\n\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'do_one_bug' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        #line 157 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('subtotal', 0.00);        $stash->set('cid', 0);                $output .=  "\n\n    ";        #line 160 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('items', $stash->get(['bug', 0, 'split', [ ';' ]]));                #line 161 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('id', $stash->get(['items', 0, 'shift', 0]));                #line 162 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('status', $stash->get(['items', 0, 'shift', 0]));                #line 163 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'bug_count', 0, $stash->get('id'), 0], 1);                #line 164 "template\en\default\bug\summarize-time.html.tmpl"        $output .=  $context->include('bug_header', { 'id' => $stash->get('id'), 'bug_status' => $stash->get('status'), 'short_desc' => $stash->get(['items', 0, 'join', [ ';' ]]) });        $output .=  "\n";        #line 180 "template\en\default\bug\summarize-time.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get(['bugdata', 0, 'sort', [ 'login_name' ]]);                        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 167 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('work_time', $stash->get(['owner', 0, 'total_time', 0]));                #line 168 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('subtotal', $stash->get('subtotal') + $stash->get('work_time'));                #line 169 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('login_name', $stash->get(['owner', 0, 'login_name', 0]));                #line 170 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set(['global', 0, 'owner_count', 0, $stash->get('login_name'), 0], 1);                #line 179 "template\en\default\bug\summarize-time.html.tmpl"        if ($stash->get('detailed')) {        $output .=  " ";        #line 172 "template\en\default\bug\summarize-time.html.tmpl"        $stash->set('cid', $stash->get('cid') + 1);                $output .=  "\n            <tr class=\"owner_header";        #line 173 "template\en\default\bug\summarize-time.html.tmpl"

⌨️ 快捷键说明

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