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

📄 email.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1185116890',        '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 $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 38 "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 41 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('usevotes', $stash->get(['Param', [ 'usevotes' ]]));        $output .=  "\n\n<p>\n  If you don't like getting a notification for \"trivial\"\n  changes to ";    #line 45 "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 all notifications.\n</p>\n\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\" && !theinput.disabled) {\n      if (theinput.name.match(\"neg\")) {\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\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>";    #line 0 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('prefname', ("email-" . '100' . "-" . '100'));        $output .=  "\n      <input type=\"checkbox\" name=\"";    #line 83 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\" id=\"";    #line 83 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\" \n        value=\"1\"";    #line 85 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get(['mail', 0, '100', 0, '100', 0])) {    $output .=  ' checked';    }        $output .=  ">\n      <label for=\"";    #line 87 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\">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>";    #line 0 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('prefname', ("email-" . '100' . "-" . '101'));        $output .=  "\n      <input type=\"checkbox\" name=\"";    #line 95 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\" id=\"";    #line 95 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\" \n        value=\"1\"";    #line 97 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get(['mail', 0, '100', 0, '101', 0])) {    $output .=  ' checked';    }        $output .=  ">\n      <label for=\"";    #line 99 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('prefname');    $output .=  "\">Email me when someone sets a flag I asked for</label>\n      <br>\n    </td>\n  </tr>";    #line 112 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get(['user', 0, 'is_global_watcher', 0])) {    $output .=  "\n  <tr>\n    <td width=\"150\"></td>\n    <td>\n      You are watching all ";    #line 107 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  ". To be removed from this role,\n      contact\n      <a href=\"mailto:";    #line 109 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['Param', [ 'maintainer' ]]);    $output .=  "\">";    #line 109 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['Param', [ 'maintainer' ]]);    $output .=  "</a>.\n    </td>\n  </tr>";    }        $output .=  "\n</table>\n\n<hr>\n<b>Field/recipient specific options:</b>\n<br>\n<br>\n";    #line 0 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('events', [ { 'id' => '1', 'description' => 'I\'m added to or removed from this capacity'  }, { 'id' => '6', 'description' => ("The " . $stash->get(['terms', 0, 'bug', 0]) . " is resolved or reopened")  }, { 'id' => '5', 'description' => 'The priority, status, severity, or milestone changes'  }, { 'id' => '2', 'description' => 'New comments are added'  }, { 'id' => '3', 'description' => 'New attachments are added'  }, { 'id' => '4', 'description' => 'Some attachment data changes'  }, { 'id' => '7', 'description' => 'The keywords field changes'  }, { 'id' => '8', 'description' => 'The CC field changes'  }, { 'id' => '9', 'description' => 'The dependency tree changes'  }, { 'id' => '0', 'description' => 'Any field not mentioned above changes'  } ]);        $output .=  "\n";    #line 0 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('neg_events', [ { 'id' => '50', 'description' => ("The " . $stash->get(['terms', 0, 'bug', 0]) . " is in the UNCONFIRMED state")  }, { 'id' => '51', 'description' => 'The change was made by me'  } ]);        $output .=  "\n";    #line 150 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('relationships', [ { 'id' => '0', 'description' => 'Assignee'  }, { 'id' => '1', 'description' => 'QA Contact'  }, { 'id' => '2', 'description' => 'Reporter'  }, { 'id' => '3', 'description' => 'CCed'  }, { 'id' => '4', 'description' => 'Voter'  } ]);        $output .=  "\n\n<table class=\"bz_emailprefs\" border=\"1\">\n  <tr>\n    <td colspan=\"";    #line 165 "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 .=  "\" \n        align=\"center\" width=\"50%\">\n      <b>When my relationship to this ";    #line 168 "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=\"40%\">\n      <b>I want to receive mail when:</b>\n    </td>\n  </tr>\n\n  <tr>";    #line 182 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('relationships');                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->{'relationship'} = $_tt_value;    #line 177 "template\en\default\account\prefs\email.html.tmpl"    if (($stash->get(['relationship', 0, 'id', 0]) eq '1' && ! $stash->get('useqacontact')) || ($stash->get(['relationship', 0, 'id', 0]) eq '4' && ! $stash->get('usevotes'))) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        $output .=  "\n      <th align=\"center\" width=\"9%\">";    #line 180 "template\en\default\account\prefs\email.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['relationship', 0, 'description', 0]);                &$_tt_filter($output);    };        $output .=  "\n      </th>";;                ($_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;    };        $output .=  "\n  </tr>\n  ";    #line 209 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('events');                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->{'event'} = $_tt_value;    $output .=  "  ";    #line 186 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('count', $stash->get(['loop', 0, 'count', 0]));        $output .=  "\n    <tr class=\"bz_row_";    #line 187 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('count') % 2 eq 1 ? 'odd' : 'even';    $output .=  "\">";    #line 204 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('relationships');                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->{'relationship'} = $_tt_value;    #line 189 "template\en\default\account\prefs\email.html.tmpl"    if (($stash->get(['relationship', 0, 'id', 0]) eq '1' && ! $stash->get('useqacontact')) || ($stash->get(['relationship', 0, 'id', 0]) eq '4' && ! $stash->get('usevotes'))) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        $output .=  "\n        <td align=\"center\">\n          <input type=\"checkbox\" \n            name=\"email-";    #line 193 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['relationship', 0, 'id', 0]);    $output .=  "-";    #line 193 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['event', 0, 'id', 0]);    $output .=  "\"\n            value=\"1\"\n            ";    #line 202 "template\en\default\account\prefs\email.html.tmpl"    if ($stash->get(['event', 0, 'id', 0]) eq '1' && ($stash->get(['relationship', 0, 'id', 0]) eq '2' || $stash->get(['relationship', 0, 'id', 0]) eq '4')) {    $output .=  "\n               disabled";    }    elsif ($stash->get(['mail', 0, $stash->get(['relationship', 0, 'id', 0]), 0, $stash->get(['event', 0, 'id', 0]), 0])) {    $output .=  "\n               checked";    }        $output .=  ">\n        </td>";;                ($_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;    };        $output .=  "\n      <td>";    #line 206 "template\en\default\account\prefs\email.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['event', 0, 'description', 0]);                &$_tt_filter($output);    };        $output .=  "\n      </td>\n    </tr>";;                ($_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;    };        $output .=  "\n  \n  <tr>\n    <td colspan=\"";    #line 212 "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 .=  "\" \n        align=\"center\" width=\"50%\">\n      &nbsp;\n    </td>\n    <td width=\"40%\">\n      <b>but not when (overrides above):</b>\n    </td>\n  </tr>\n";    #line 239 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('neg_events');                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->{'event'} = $_tt_value;    $output .=  "  ";    #line 223 "template\en\default\account\prefs\email.html.tmpl"    $stash->set('count', $stash->get(['loop', 0, 'count', 0]));        $output .=  "\n    <tr class=\"bz_row_";    #line 224 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get('count') % 2 eq 1 ? 'odd' : 'even';    $output .=  "\">";    #line 234 "template\en\default\account\prefs\email.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('relationships');                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->{'relationship'} = $_tt_value;    #line 226 "template\en\default\account\prefs\email.html.tmpl"    if (($stash->get(['relationship', 0, 'id', 0]) eq '1' && ! $stash->get('useqacontact')) || ($stash->get(['relationship', 0, 'id', 0]) eq '4' && ! $stash->get('usevotes'))) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        $output .=  "\n        <td align=\"center\">\n          <input type=\"checkbox\" \n            name=\"neg-email-";    #line 230 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['relationship', 0, 'id', 0]);    $output .=  "-";    #line 230 "template\en\default\account\prefs\email.html.tmpl"    $output .=  $stash->get(['event', 0, 'id', 0]);    $output .=  "\"\n            value=\"1\"";    #line 232 "template\en\default\account\prefs\email.html.tmpl"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -