?? votes-removed.txt.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1207158416', 'name' => 'email/votes-removed.txt.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 22 "template\en\default\email\votes-removed.txt.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\nFrom: "; #line 24 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['Param', [ 'mailfrom' ]]); $output .= "\nTo: "; #line 25 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get('to'); $output .= "\nSubject: "; #line 26 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " "; #line 26 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get('bugid'); $output .= " Some or all of your votes have been removed.\nX-Bugzilla-Type: voteremoved\n\nSome or all of your votes have been removed from "; #line 29 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " "; #line 29 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get('bugid'); $output .= ".\n\nYou had "; #line 31 "template\en\default\email\votes-removed.txt.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('votesold'); &$_tt_filter($output); }; $output .= " "; #line 31 "template\en\default\email\votes-removed.txt.tmpl" if ($stash->get('votesold') eq 1) { $output .= "vote"; } else { $output .= "votes"; } $output .= " on this "; #line 32 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", but "; #line 32 "template\en\default\email\votes-removed.txt.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('votesremoved'); &$_tt_filter($output); }; $output .= " have been removed.\n"; #line 38 "template\en\default\email\votes-removed.txt.tmpl" if ($stash->get('votesnew')) { $output .= "\nYou still have "; #line 35 "template\en\default\email\votes-removed.txt.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('votesnew'); &$_tt_filter($output); }; $output .= " "; #line 35 "template\en\default\email\votes-removed.txt.tmpl" if ($stash->get('votesnew') eq 1) { $output .= "vote"; } else { $output .= "votes"; } $output .= " on this "; #line 35 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "."; } else { $output .= "\nYou have no more votes remaining on this "; #line 37 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "."; } $output .= "\n\nReason:"; #line 51 "template\en\default\email\votes-removed.txt.tmpl" if ($stash->get('reason') eq 'votes_bug_moved') { $output .= "\n This "; #line 42 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " has been moved to a different product.\n"; } elsif ($stash->get('reason') eq 'votes_too_many_per_bug') { $output .= "\n The rules for voting on this product has changed;\n you had too many votes for a single "; #line 46 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ".\n"; } elsif ($stash->get('reason') eq 'votes_too_many_per_user') { $output .= "\n The rules for voting on this product has changed; you had\n too many total votes, so all votes have been removed."; } $output .= "\n\n\n"; #line 55 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "show_bug.cgi?id="; #line 55 "template\en\default\email\votes-removed.txt.tmpl" $output .= $stash->get('bugid'); $output .= "\n\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -