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

📄 time.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1074451164',        'name' => 'bug/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                                      ";        $output .=  "\n";        $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'formattimeunit' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        $output .=  "\n  ";        #line 29 "template\en\default\bug\time.html.tmpl"                # CAPTURE        $stash->set('time_unit', do {            my $output = '';                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('format', [ '%.2f' ])                      || $context->throw($context->error);                $output .=  $stash->get('time_unit');                        &$_tt_filter($output);        };                    $output;        });                #line 34 "template\en\default\bug\time.html.tmpl"        if ($stash->get(['time_unit', 0, 'match', [ '0\Z' ]])) {        #line 31 "template\en\default\bug\time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('format', [ '%.1f' ])                      || $context->throw($context->error);                $output .=  $stash->get('time_unit');                        &$_tt_filter($output);        };                }        else {        #line 33 "template\en\default\bug\time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('format', [ '%.2f' ])                      || $context->throw($context->error);                $output .=  $stash->get('time_unit');                        &$_tt_filter($output);        };                }                    } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },        'calculatepercentage' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        $output .=  "\n  ";        #line 47 "template\en\default\bug\time.html.tmpl"        if (($stash->get('act') + $stash->get('rem')) > 0) {        #line 43 "template\en\default\bug\time.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('format', [ '%d' ])                      || $context->throw($context->error);                $output .=  ($stash->get('act') / ($stash->get('act') + $stash->get('rem'))) * 100;                        &$_tt_filter($output);        };                }        else {        $output .=  "\n    0";        }                    } };            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 + -