?? cancel-token.txt.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1207158416', 'name' => 'account/cancel-token.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 23 "template\en\default\account\cancel-token.txt.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\nFrom: "; #line 25 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['Param', [ 'mailfrom' ]]); $output .= "\nTo: "; #line 26 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('emailaddress'); $output .= "\nSubject: "; #line 27 "template\en\default\account\cancel-token.txt.tmpl" $output .= $context->process('subject'); $output .= "\nX-Bugzilla-Type: admin\n\nA request was canceled from "; #line 30 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('remoteaddress'); $output .= ".\n\nIf you did not request this, it could be either an honest\nmistake or someone attempting to break into your "; #line 33 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " account.\n\nTake a look at the information below and forward this email\nto "; #line 36 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= " if you suspect foul play.\n\n Token: "; #line 38 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('token'); $output .= "\n Token Type: "; #line 39 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('tokentype'); $output .= "\n User: "; #line 40 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('emailaddress'); $output .= "\n Issue Date: "; #line 41 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('issuedate'); $output .= "\n Event Data: "; #line 42 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('eventdata'); $output .= "\nCanceled Because: "; #line 43 "template\en\default\account\cancel-token.txt.tmpl" $output .= $context->process('cancelactionmessage'); $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'cancelactionmessage' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 106 "template\en\default\account\cancel-token.txt.tmpl" if ($stash->get('cancelaction') eq 'account_exists') { $output .= "\n Account "; #line 59 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('email'); $output .= " already exists.\n"; } elsif ($stash->get('cancelaction') eq 'email_change_cancelled') { $output .= "\n The request to change the email address for\n the "; #line 63 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('old_email'); $output .= " account to "; #line 63 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('new_email'); $output .= " has\n been canceled.\n"; } elsif ($stash->get('cancelaction') eq 'email_change_cancelled_reinstated') { $output .= "\n The request to change the email address for your account\n to "; #line 68 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('new_email'); $output .= " has been canceled. Your old account\n settings have been reinstated.\n"; } elsif ($stash->get('cancelaction') eq 'emailold_change_cancelled') { $output .= "\n The request to change the email address for your account\n to "; #line 73 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('new_email'); $output .= " has been canceled.\n"; } elsif ($stash->get('cancelaction') eq 'password_change_cancelled') { $output .= "\n You have requested cancellation.\n"; } elsif ($stash->get('cancelaction') eq 'account_creation_cancelled') { $output .= "\n The creation of the user account "; #line 79 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('emailaddress'); $output .= "\n has been canceled.\n"; } elsif ($stash->get('cancelaction') eq 'user_logged_in') { $output .= "\n You have logged in.\n"; } elsif ($stash->get('cancelaction') eq 'wrong_token_for_changing_passwd') { $output .= "\n You have tried to use the token to change the password.\n"; } elsif ($stash->get('cancelaction') eq 'wrong_token_for_cancelling_email_change') { $output .= "\n You have tried to use the token to cancel the email address change.\n"; } elsif ($stash->get('cancelaction') eq 'wrong_token_for_confirming_email_change') { $output .= "\n You have tried to use the token to confirm the email address change.\n"; } elsif ($stash->get('cancelaction') eq 'wrong_token_for_creating_account') { $output .= "\n You have tried to use the token to create a user account.\n"; } else { $output .= "\n "; $output .= "\n You are using "; #line 100 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= "'s cancel-token function incorrectly. You\n passed in the string '"; #line 101 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('cancelaction'); $output .= "'. The correct use is to pass\n in a tag, and define that tag in the file cancel-token.txt.tmpl.\n\n If you are a "; #line 104 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " end-user seeing this message, please forward this\n email to "; #line 105 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= "."; } } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'subject' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 54 "template\en\default\account\cancel-token.txt.tmpl" if ($stash->get('tokentype') eq 'new_account') { $output .= "\n User account creation request canceled"; } elsif ($stash->get('tokentype') eq 'password') { $output .= "\n Password change request canceled"; } elsif ($stash->get('tokentype') eq 'emailnew' || $stash->get('tokentype') eq 'emailold') { $output .= "\n Email change request canceled"; } else { #line 53 "template\en\default\account\cancel-token.txt.tmpl" $output .= $stash->get('tokentype'); $output .= " token canceled"; } } }; 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 + -