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

📄 list.ics.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1191799298',        'name' => 'list/list.ics.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";    #line 21 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\nBEGIN:VCALENDAR\nCALSCALE:GREGORIAN\n";    #line 24 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_prodid');    $output .=  "\nVERSION:2.0";    #line 53 "template\en\default\list\list.ics.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;    $output .=  "\nBEGIN:VTODO\n";    #line 28 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_dtstart');    $output .=  "\n";    #line 29 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_summary');    $output .=  "\n";    #line 30 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_uid', { 'base_url' => $stash->get(['Param', [ 'urlbase' ]]), 'bug_id' => $stash->get(['bug', 0, 'bug_id', 0]) });    $output .=  "\n";    #line 31 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_url', { 'base_url' => $stash->get(['Param', [ 'urlbase' ]]), 'bug_id' => $stash->get(['bug', 0, 'bug_id', 0]) });    $output .=  "\n";    #line 32 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_status', { 'bug_status' => $stash->get(['bug', 0, 'bug_status', 0]) });    $output .=  "\n";    #line 33 "template\en\default\list\list.ics.tmpl"    $output .=  $context->process('ics_dtstamp');    #line 36 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'changeddate', 0])) {    $output .=  "\n";    #line 35 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'LAST-MODIFIED' ])                  || $context->throw($context->error);        $output .=  $stash->get(['time2str', [ '%Y%m%dT%H%M%SZ', $stash->get(['bug', 0, 'changedtime', 0]), 'UTC' ]]);                &$_tt_filter($output);    };        }        #line 39 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'percentage_complete', 0])) {    $output .=  "\n";    #line 38 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'PERCENT-COMPLETE' ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('format', [ '%d' ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'percentage_complete', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        }        #line 42 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'product', 0])) {    $output .=  "\n";    #line 41 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'X-BUGZILLA-PRODUCT' ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'product', 0]);                &$_tt_filter($output);    };        }        #line 45 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'component', 0])) {    $output .=  "\n";    #line 44 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'X-BUGZILLA-COMPONENT' ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'component', 0]);                &$_tt_filter($output);    };        }        #line 48 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'version', 0])) {    $output .=  "\n";    #line 47 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'X-BUGZILLA-VERSION' ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'version', 0]);                &$_tt_filter($output);    };        }        #line 51 "template\en\default\list\list.ics.tmpl"    if ($stash->get(['bug', 0, 'keywords', 0])) {    $output .=  "\n";    #line 50 "template\en\default\list\list.ics.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('ics', [ 'X-BUGZILLA-KEYWORDS' ])                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'keywords', 0]);                &$_tt_filter($output);    };        }        $output .=  "\nEND:VTODO";;                ($_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 .=  "\nEND:VCALENDAR\n";        $output .=  "\n";        $output .=  "\n";        $output .=  "\n";        $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 => {        'ics_status' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        #line 77 "template\en\default\list\list.ics.tmpl"        $stash->set('status', '');                #line 83 "template\en\default\list\list.ics.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get('closedstates');                        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->{'state'} = $_tt_value;        #line 82 "template\en\default\list\list.ics.tmpl"        if ($stash->get('bug_status') eq $stash->get('state')) {        #line 80 "template\en\default\list\list.ics.tmpl"        $stash->set('status', 'COMPLETED');                #line 81 "template\en\default\list\list.ics.tmpl"        last LOOP;        }        ;                    ($_tt_value, $_tt_error) = $_tt_list->get_next();                }            };            $stash->set('loop', $_tt_oldloop);

⌨️ 快捷键说明

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