📄 messages.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1185737044', 'name' => 'global/messages.html.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\n"; $output .= "\n"; #line 27 "template\en\default\global\messages.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 29 "template\en\default\global\messages.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 31 "template\en\default\global\messages.html.tmpl" $stash->set('message_tag', $stash->get('message')); $output .= "\n"; #line 429 "template\en\default\global\messages.html.tmpl" # CAPTURE $stash->set('message', do { my $output = ''; #line 428 "template\en\default\global\messages.html.tmpl" if ($stash->get('message_tag') eq 'account_created') { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ("User " . $stash->get(['otheruser', 0, 'login', 0]) . " created")); $output .= "\n A new user account "; #line 36 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= " has been created\n successfully."; #line 40 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups', 0, 'size', 0])) { $output .= "\n You may want to edit the group settings now, using the form below."; } #line 44 "template\en\default\global\messages.html.tmpl" if ($stash->get('login_info')) { $output .= "\n You can now go to the <a href=\"index.cgi\">Log In</a> page to enter\n this "; #line 43 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " installation."; } $output .= "\n"; } elsif ($stash->get('message_tag') eq 'account_creation_cancelled') { #line 47 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'User Account Creation Canceled'); $output .= "\n The creation of the user account "; #line 48 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('account'); &$_tt_filter($output); }; $output .= " has been\n canceled.\n"; } elsif ($stash->get('message_tag') eq 'account_updated') { #line 111 "template\en\default\global\messages.html.tmpl" if ($stash->get(['changed_fields', 0, 'size', 0]) + $stash->get(['groups_added_to', 0, 'size', 0]) + $stash->get(['groups_removed_from', 0, 'size', 0]) + $stash->get(['groups_granted_rights_to_bless', 0, 'size', 0]) + $stash->get(['groups_denied_rights_to_bless', 0, 'size', 0])) { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ("User " . $stash->get('loginold') . " updated")); $output .= "\n The following changes have been made to the user account\n "; #line 57 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('loginold'); &$_tt_filter($output); }; $output .= ":\n <ul>"; #line 77 "template\en\default\global\messages.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('changed_fields'); 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->{'field'} = $_tt_value; $output .= "\n <li>"; #line 75 "template\en\default\global\messages.html.tmpl" if ($stash->get('field') eq 'login_name') { $output .= "\n The login is now "; #line 62 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "."; } elsif ($stash->get('field') eq 'realname') { $output .= "\n The real name has been updated."; } elsif ($stash->get('field') eq 'cryptpassword') { $output .= "\n A new password has been set."; } elsif ($stash->get('field') eq 'disabledtext') { $output .= "\n The disable text has been modified."; } elsif ($stash->get('field') eq 'disable_mail') { #line 74 "template\en\default\global\messages.html.tmpl" if ($stash->get(['otheruser', 0, 'email_disabled', 0])) { #line 71 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= "mail has been disabled."; } else { #line 73 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= "mail has been enabled."; } } $output .= "\n </li>";; ($_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; }; #line 84 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_added_to', 0, 'size', 0])) { $output .= "\n <li>\n The account has been added to the\n "; #line 81 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['groups_added_to', 0, 'join', [ ', ' ]]); &$_tt_filter($output); }; $output .= "\n group"; #line 82 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_added_to', 0, 'size', 0]) > 1) { $output .= 's'; } $output .= ".\n </li>"; } #line 91 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_removed_from', 0, 'size', 0])) { $output .= "\n <li>\n The account has been removed from the\n "; #line 88 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['groups_removed_from', 0, 'join', [ ', ' ]]); &$_tt_filter($output); }; $output .= "\n group"; #line 89 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_removed_from', 0, 'size', 0]) > 1) { $output .= 's'; } $output .= ".\n </li>"; } #line 98 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_granted_rights_to_bless', 0, 'size', 0])) { $output .= "\n <li>\n The account has been granted rights to bless the\n "; #line 95 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['groups_granted_rights_to_bless', 0, 'join', [ ', ' ]]); &$_tt_filter($output); }; $output .= "\n group"; #line 96 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_granted_rights_to_bless', 0, 'size', 0]) > 1) { $output .= 's'; } $output .= ".\n </li>"; } #line 105 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_denied_rights_to_bless', 0, 'size', 0])) { $output .= "\n <li>\n The account has been denied rights to bless the\n "; #line 102 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['groups_denied_rights_to_bless', 0, 'join', [ ', ' ]]); &$_tt_filter($output); }; $output .= "\n group"; #line 103 "template\en\default\global\messages.html.tmpl" if ($stash->get(['groups_denied_rights_to_bless', 0, 'size', 0]) > 1) { $output .= 's'; } $output .= ".\n </li>"; } $output .= "\n </ul>"; } else { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ("User " . $stash->get(['otheruser', 0, 'login', 0]) . " not changed")); $output .= "\n You didn't request any changes to the user's account\n "; #line 110 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "."; } $output .= "\n"; } elsif ($stash->get('message_tag') eq 'account_deleted') { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ("User " . $stash->get(['otheruser', 0, 'login', 0]) . " deleted")); $output .= "\n The user account "; #line 115 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= " has been deleted\n successfully.\n"; } elsif ($stash->get('message_tag') eq 'attachment_creation_failed') { $output .= "\n The "; #line 119 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " was created successfully, but attachment creation\n failed.\n Please add your attachment by clicking the \"Create a New Attachment\" link\n below.\n"; } elsif ($stash->get('message_tag') eq 'bug_confirmed_by_votes') { $output .= "\n *** This "; #line 125 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " has been confirmed by popular vote. ***\n"; } elsif ($stash->get('message_tag') eq 'bug_duplicate_of') { $output .= "\n *** This "; #line 128 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " has been marked as a duplicate of "; #line 128 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " "; #line 128 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -