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

📄 votes-removed.txt.tmpl

📁 buzilla软件
💻 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 + -