📄 email.html.tmpl
字号:
if (! $stash->get(['mail', 0, $stash->get(['relationship', 0, 'id', 0]), 0, $stash->get(['event', 0, 'id', 0]), 0])) { $output .= ' 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 236 "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</table>\n\n"; #line 253 "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 252 "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 251 "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'))) { $output .= "\n <input type=\"hidden\" \n name=\"email-"; #line 249 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['relationship', 0, 'id', 0]); $output .= "-"; #line 249 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['event', 0, 'id', 0]); $output .= "\"\n value=\""; #line 250 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['mail', 0, $stash->get(['relationship', 0, 'id', 0]), 0, $stash->get(['event', 0, 'id', 0]), 0]) ? '1' : '0'; $output .= "\">"; } ; ($_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; }; ; ($_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"; #line 264 "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 263 "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 262 "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'))) { $output .= "\n <input type=\"hidden\" \n name=\"neg-email-"; #line 260 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['relationship', 0, 'id', 0]); $output .= "-"; #line 260 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['event', 0, 'id', 0]); $output .= "\"\n value=\""; #line 261 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['mail', 0, $stash->get(['relationship', 0, 'id', 0]), 0, $stash->get(['event', 0, 'id', 0]), 0]) ? '0' : '1'; $output .= "\">"; } ; ($_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; }; ; ($_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"; #line 308 "template\en\default\account\prefs\email.html.tmpl" if ($stash->get(['Param', [ 'supportwatchers' ]])) { $output .= "\n<hr>\n<b>User Watching</b>\n\n<p>\nIf you watch a user, it is as if you are standing in their shoes for the \npurposes of getting email. Email is sent or not according to <u>your</u>\npreferences for <u>their</u> relationship to the "; #line 273 "template\en\default\account\prefs\email.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " \n(e.g. Assignee).\n</p>\n\n<p>"; #line 291 "template\en\default\account\prefs\email.html.tmpl" if ($stash->get(['watchedusers', 0, 'size', 0])) { $output .= "\nYou are watching everyone in the following list:\n </p>\n <p>\n <select id=\"watched_by_you\" name=\"watched_by_you\" multiple=\"multiple\" size=\"5\">"; #line 285 "template\en\default\account\prefs\email.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('watchedusers'); 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->{'w'} = $_tt_value; $output .= "\n <option value=\""; #line 284 "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('w'); &$_tt_filter($output); }; $output .= "\">"; #line 284 "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('w'); &$_tt_filter($output); }; $output .= "</option>";; ($_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 </select> <br />\n <input type=\"checkbox\" id=\"remove_watched_users\" name=\"remove_watched_users\">\n <label for=\"remove_watched_users\">Remove selected users from my watch list</label>"; } else { $output .= "\nYou are currently not watching any users."; } $output .= "\n</p>\n\n<p><a name=\"new_watched_by_you\" id=\"new_watched_by_you\">Add users to my watch list (comma separated list)</a>:\n <input size=\"60\" name=\"new_watchedusers\" value=\"\">\n</p> \n\n<p><a name=\"watching_you\" id=\"watching_you\">Users watching you</a>:<br>"; #line 305 "template\en\default\account\prefs\email.html.tmpl" if ($stash->get(['watchers', 0, 'size', 0])) { #line 302 "template\en\default\account\prefs\email.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('watchers'); 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->{'watcher'} = $_tt_value; #line 301 "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('watcher'); &$_tt_filter($output); }; $output .= " <br>";; ($_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; }; } else { $output .= "\n <i>No one</i>"; } $output .= "\n</p>\n"; } $output .= "\n\n<hr>\n\n<br>\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -