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

📄 email.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1100953080',        'name' => 'account/prefs/email.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 37 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 40 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('useqacontact', $stash->get(['Param', [ 'useqacontact' ]]));        #line 40 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('usevotes', $stash->get(['Param', [ 'usevotes' ]]));        $output .=  "\n\n<table>";    #line 69 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get(['Param', [ 'supportwatchers' ]])) {    $output .=  "\n    <tr>\n      <td colspan=\"4\">\n        <hr>\n      </td>\n    </tr>\n\n    <tr>\n      <td colspan=\"4\">\n        If you want to help cover for someone when they're on vacation, or if\n        you need to do the QA related to all of their ";    #line 54 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ", you can tell\n        ";    #line 55 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bugzilla', 0]);    $output .=  " to send mail related to their ";    #line 55 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " to you, too.  List the\n        email addresses of any accounts you wish to watch here, separated by\n        commas.\n      </td>\n    </tr>\n\n    <tr>\n      <th align=\"right\">Users to watch:</th>\n      <td>\n        <input size=\"35\" name=\"watchedusers\" \n               value=\"";    #line 65 "template\en\default\account\prefs\email.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('watchedusers');                &$filter($output);    };        $output .=  "\">\n      </td>\n    </tr>";    }        $output .=  "\n\n  <tr>\n    <td colspan=\"2\">\n      <p>\n        If you don't like getting a notification for \"trivial\"\n        changes to ";    #line 75 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ", you can use the settings below to\n        filter some (or even all) notifications.\n      </p>\n    </td>\n  </tr>\n</table>\n\n<hr>\n\n<table>\n  <tr>\n    <td colspan=\"2\">\n      <b>Global options:</b>\n    </td>\n  </tr>\n\n  <tr>\n    <td width=\"150\"></td>\n    <td>\n      <input type=\"checkbox\" name=\"ExcludeSelf\" id=\"ExcludeSelf\" value=\"on\"";    #line 96 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('excludeself')) {    $output .=  ' checked';    }        $output .=  ">\n      <label for=\"ExcludeSelf\">Only email me reports of changes made by other people</label>\n      <br>\n    </td>\n  </tr>\n  <tr>\n    <td width=\"150\"></td>\n    <td>\n      <input type=\"checkbox\" name=\"FlagRequestee\" id=\"FlagRequestee\" value=\"on\"";    #line 106 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('FlagRequestee')) {    $output .=  ' checked';    }        $output .=  ">\n      <label for=\"FlagRequestee\">Email me when someone asks me to set a flag</label>\n      <br>\n    </td>\n  </tr>\n  <tr>\n    <td width=\"150\"></td>\n    <td>\n      <input type=\"checkbox\" name=\"FlagRequester\" id=\"FlagRequester\" value=\"on\"";    #line 116 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('FlagRequester')) {    $output .=  ' checked';    }        $output .=  ">\n      <label for=\"FlagRequester\">Email me when someone sets a flag I asked for</label>\n      <br>\n    </td>\n  </tr>\n</table>\n<noscript>If you had Javascript active, you could toggle all of these with one click.<br></noscript>\n<script type=\"text/javascript\">\n<!--\nfunction SetCheckboxes(setting) {\n  for (var count = 0; count < document.userprefsform.elements.length; count++) {\n    var theinput = document.userprefsform.elements[count];\n    if (theinput.type == \"checkbox\") {\n      if (theinput.name == \"ExcludeSelf\") {\n        theinput.checked = false;\n      }\n      else {\n        theinput.checked = setting;\n      }\n    }\n  }\n}\n\ndocument.write('<input type=\"button\" value=\"Enable All Mail\" onclick=\"SetCheckboxes(true); return false;\">\\n');\ndocument.write('<input type=\"button\" value=\"Disable All Mail\" onclick=\"SetCheckboxes(false); return false;\">\\n');\n// -->\n</script>\n<hr>\n<b>Field/recipient specific options:</b>\n<br>\n<br>\n\n\n<table width=\"100%\" border=\"1\">\n  <tr>\n    <td colspan=\"";    #line 151 "template\en\default\account\prefs\email.html.tmpl"    $output .=  ($stash->get('useqacontact') && $stash->get('usevotes')) ? '5' : (($stash->get('useqacontact') || $stash->get('usevotes')) ? '4' : '3');    $output .=  "\" align=\"center\" width=\"50%\">\n      <b>When my relationship to this ";    #line 152 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " is:</b>\n    </td>\n    <td rowspan=\"2\" width=\"50%\">\n      <b>I want to receive mail when:</b>\n    </td>\n  </tr>\n\n  <tr>\n    <td align=\"center\" width=\"10%\">\n      <b>Reporter</b>\n    </td>\n    <td align=\"center\" width=\"10%\">\n      <b>Assignee</b>\n    </td>";    #line 172 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('useqacontact')) {    $output .=  "\n      <td align=\"center\" width=\"10%\">\n        <b>QA Contact</b>\n      </td>";    }        $output .=  "\n    <td align=\"center\" width=\"10%\">\n      <b>CC</b>\n    </td>";    #line 182 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('usevotes')) {    $output .=  "\n      <td align=\"center\" width=\"10%\">\n        <b>Voter</b>\n      </td>";    }        $output .=  "\n  </tr>\n";    #line 186 "template\en\default\account\prefs\email.html.tmpl"        # CAPTURE    $stash->set('bugLabelLower', do {        my $output = '';    #line 186 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);        $output;    });        $output .=  "\n";    #line 226 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = [ { 'name' => 'Removeme', 'description' => 'I\'m added to or removed from this capacity'  }, { 'name' => 'Comments', 'description' => 'New Comments are added'  }, { 'name' => 'Attachments', 'description' => 'New Attachments are added'  }, { 'name' => 'Status', 'description' => 'Priority, status, severity, and/or milestone changes'  }, { 'name' => 'Resolved', 'description' => ("The " . $stash->get('bugLabelLower') . " is resolved or verified")  }, { 'name' => 'Keywords', 'description' => 'Keywords field changes'  }, { 'name' => 'CC', 'description' => 'CC field changes'  }, { 'name' => 'Other', 'description' => 'Any field not mentioned above changes'  }, { 'name' => 'Unconfirmed', 'description' => ("The " . $stash->get('bugLabelLower') . " is in the unconfirmed state")  } ];                unless (UNIVERSAL::isa($list, 'Template::Iterator')) {            $list = Template::Config->iterator($list)                || die $Template::Config::ERROR, "\n";         }            ($value, $error) = $list->get_first();        eval { $oldloop = $stash->get('loop') };        $stash->set('loop', $list);        eval {    LOOP:   while (! $error) {                $stash->{'reason'} = $value;    $output .=  "\n    <tr>";    #line 219 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = [ 'Reporter', 'Owner', 'QAcontact', 'CClist', 'Voter' ];                unless (UNIVERSAL::isa($list, 'Template::Iterator')) {            $list = Template::Config->iterator($list)                || die $Template::Config::ERROR, "\n";         }            ($value, $error) = $list->get_first();        eval { $oldloop = $stash->get('loop') };        $stash->set('loop', $list);        eval {    LOOP:   while (! $error) {                $stash->{'role'} = $value;    #line 212 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('role') eq 'QAcontact' && ! $stash->get('useqacontact')) {    ($value, $error) = $list->get_next();    next LOOP;        }        #line 212 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get('role') eq 'Voter' && ! $stash->get('usevotes')) {    ($value, $error) = $list->get_next();    next LOOP;        }        $output .=  "\n        <td align=\"center\">\n          <input type=\"checkbox\" name=\"email";    #line 214 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('role');    #line 214 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['reason', 0, 'name', 0]);    $output .=  "\" value=\"on\"";    #line 216 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get([$stash->get('role'), 0, $stash->get(['reason', 0, 'name', 0]), 0])) {    $output .=  ' checked';    }        $output .=  ">\n        </td>";;                ($value, $error) = $list->get_next();            }        };        $stash->set('loop', $oldloop);        die $@ if $@;        $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;        die $error if $error;    };        $output .=  "\n      <td>";    #line 222 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['reason', 0, 'description', 0]);    $output .=  "\n      </td>\n    </tr>";;                ($value, $error) = $list->get_next();            }        };        $stash->set('loop', $oldloop);        die $@ if $@;        $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;        die $error if $error;    };        $output .=  "\n</table>\n\n<br>\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 + -