📄 messages.html.tmpl
字号:
my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('new_email'); &$filter($output); }; $output .= " has been cancelled.\n Your old account settings have been reinstated.\n"; } elsif ($stash->get('message_tag') eq 'logged_out') { #line 90 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Logged Out'); #line 90 "template\en\default\global\messages.html.tmpl" $stash->set('url', 'query.cgi?GoAheadAndLogIn=1'); #line 90 "template\en\default\global\messages.html.tmpl" $stash->set('link', 'Log in again.'); $output .= "\n <b>Your login has been forgotten</b>.\n The cookie that was remembering your login is now gone. You will be\n prompted for a login the next time it is required.\n"; } elsif ($stash->get('message_tag') eq 'login_changed') { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ($stash->get(['terms', 0, 'Bugzilla', 0]) . " Login Changed")); $output .= "\n Your "; #line 97 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " login has been changed.\n"; } elsif ($stash->get('message_tag') eq 'password_change_cancelled') { #line 100 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Cancel Request to Change Password'); $output .= "\n Your request has been cancelled.\n"; } elsif ($stash->get('message_tag') eq 'password_change_request') { #line 104 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Request to Change Password'); $output .= "\n A token for changing your password has been emailed to you.\n Follow the instructions in that email to change your password.\n"; } elsif ($stash->get('message_tag') eq 'password_changed') { #line 109 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Password Changed'); $output .= "\n Your password has been changed.\n"; } elsif ($stash->get('message_tag') eq 'flag_type_created') { #line 113 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Flag Type Created'); $output .= "\n The flag type <em>"; #line 114 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$filter($output); }; $output .= "</em> has been created.\n <a href=\"editflagtypes.cgi\">Back to flag types.</a>\n "; } elsif ($stash->get('message_tag') eq 'flag_type_changes_saved') { #line 118 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Flag Type Changes Saved'); $output .= "\n <p>\n Your changes to the flag type <em>"; #line 120 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$filter($output); }; $output .= "</em> \n have been saved.\n <a href=\"editflagtypes.cgi\">Back to flag types.</a>\n </p>\n "; } elsif ($stash->get('message_tag') eq 'flag_type_deleted') { #line 126 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Flag Type Deleted'); $output .= "\n <p>\n The flag type <em>"; #line 128 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$filter($output); }; $output .= "</em> has been deleted.\n <a href=\"editflagtypes.cgi\">Back to flag types.</a>\n </p>\n "; } elsif ($stash->get('message_tag') eq 'flag_type_deactivated') { #line 133 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Flag Type Deactivated'); $output .= "\n <p>\n The flag type <em>"; #line 135 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['flag_type', 0, 'name', 0]); &$filter($output); }; $output .= "</em> \n has been deactivated.\n <a href=\"editflagtypes.cgi\">Back to flag types.</a>\n </p>\n "; } elsif ($stash->get('message_tag') eq 'product_invalid') { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ($stash->get(['terms', 0, 'Bugzilla', 0]) . " Component Descriptions")); $output .= "\n The product <em>"; #line 142 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('product'); &$filter($output); }; $output .= "</em> does not exist\n or you don't have access to it. The following is a list of the\n products you can choose from.\n"; } elsif ($stash->get('message_tag') eq 'series_created') { #line 147 "template\en\default\global\messages.html.tmpl" $stash->set('title', 'Series Created'); $output .= "\n The series <em>"; #line 148 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'category', 0]); &$filter($output); }; $output .= " /\n "; #line 149 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'subcategory', 0]); &$filter($output); }; $output .= " / \n "; #line 150 "template\en\default\global\messages.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'name', 0]); &$filter($output); }; $output .= "</em>\n has been created. Note that you may need to wait up to \n "; #line 152 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['series', 0, 'frequency', 0]) * 2; $output .= " days before there will be enough data for a\n chart of this series to be produced.\n <br><br>\n Go back or \n <a href=\"query.cgi?format=create-series\">create another series</a>.\n "; } elsif ($stash->get('message_tag') eq 'shutdown') { #line 0 "template\en\default\global\messages.html.tmpl" $stash->set('title', ($stash->get(['terms', 0, 'Bugzilla', 0]) . " is Down")); #line 159 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['Param', [ 'shutdownhtml' ]]); $output .= "\n "; } else { $output .= "\n "; $output .= " \n You are using "; #line 165 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= "'s messaging functions incorrectly. You\n passed in the string '"; #line 166 "template\en\default\global\messages.html.tmpl" $output .= $stash->get('message_tag'); $output .= "'. The correct use is to pass\n in a tag, and define that tag in the file messages.html.tmpl.<br>\n <br>\n If you are a "; #line 169 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " end-user seeing this message, please \n save this page and send it to "; #line 170 "template\en\default\global\messages.html.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= ".\n "; } $output; }); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -