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

📄 list.ics.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
            die $@ if $@;            $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;            die $error if $error;        };                #line 61 "template\en\default\list\list.ics.tmpl"        if (! $stash->get('status')) {        #line 61 "template\en\default\list\list.ics.tmpl"        if ($stash->get('bug_status') eq 'ASSIGNED') {        #line 61 "template\en\default\list\list.ics.tmpl"        $stash->set('status', 'IN-PROGRESS');                }        else {        #line 61 "template\en\default\list\list.ics.tmpl"        $stash->set('status', 'NEEDS-ACTION');                }                }                #line 61 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'STATUS' ])                      || $context->throw($context->error);                $output .=  $stash->get('status');                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_uid' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 0 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'UID' ])                      || $context->throw($context->error);                        # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('uri')                      || $context->throw($context->error);                $output .=  ($stash->get('bug_id') . "\@" . $stash->get('base_url'));                        &$filter($output);        };                                &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_prodid' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 0 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'PRODID' ])                      || $context->throw($context->error);                $output .=  ("-//Mozilla/Bugzilla " . $stash->get('VERSION') . "//EN");                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_dtstart' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 55 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'DTSTART' ])                      || $context->throw($context->error);                $output .=  $stash->get(['bug', 0, 'opendate', 0]);                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_url' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 0 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'URL;VALUE=URI' ])                      || $context->throw($context->error);                        # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('uri')                      || $context->throw($context->error);                $output .=  ($stash->get('base_url') . "show_bug.cgi?id=" . $stash->get('bug_id'));                        &$filter($output);        };                                &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_summary' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 64 "template\en\default\list\list.ics.tmpl"        if ($stash->get(['bug', 0, 'short_desc', 0])) {        #line 64 "template\en\default\list\list.ics.tmpl"        $stash->set('summary', $stash->get(['bug', 0, 'short_desc', 0]));                }        elsif ($stash->get(['bug', 0, 'short_short_desc', 0])) {        #line 64 "template\en\default\list\list.ics.tmpl"        $stash->set('summary', $stash->get(['bug', 0, 'short_short_desc', 0]));                }        else {        #line 0 "template\en\default\list\list.ics.tmpl"        $stash->set('summary', ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get(['bug', 0, 'bug_id', 0])));                }                #line 64 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'SUMMARY' ])                      || $context->throw($context->error);                $output .=  $stash->get('summary');                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },        'ics_dtstamp' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        #line 58 "template\en\default\list\list.ics.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('ics', [ 'DTSTAMP' ])                      || $context->throw($context->error);                $output .=  $stash->get('currenttime');                        &$filter($output);        };                    } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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