📄 schedule.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1185743970', 'name' => 'whine/schedule.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"; $output .= "\n\n"; $output .= "\n"; #line 36 "template\en\default\whine\schedule.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 38 "template\en\default\whine\schedule.html.tmpl" $stash->set('title', 'Set up whining'); #line 39 "template\en\default\whine\schedule.html.tmpl" $output .= $context->process('global/header.html.tmpl'); $output .= "\n\n<p>\n \"Whining\" is when "; #line 42 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " executes a saved query at a regular interval\n and sends the resulting list of "; #line 43 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " via email.\n</p>\n\n<p>\n To set up a new whine event, click \"Add a new event.\" Enter a subject line\n for the message that will be sent, along with a block of text that will\n accompany the "; #line 49 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " list in the body of the message.\n</p>\n\n<p>\n Schedules are added to an event by clicking on \"Add a new schedule.\" A schedule\n consists of a day, a time of day or interval of times\n (e.g., every 15 minutes), and a target email address that may or may not be\n alterable, depending on your privileges. Events may have more than one schedule\n in order to run at multiple times or for different users.\n</p>\n\n<p>\n Searches come from saved searches, which are created by executing a <a\n href=\"query.cgi\">search</a>, then telling "; #line 62 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " to remember\n the search under a particular name. Add a query by clicking \"Add a new\n query\", and select the desired saved search name under \"Search\" and add a\n title for the "; #line 65 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " table. The optional number entered under\n \"Sort\" will determine the execution order (lowest to highest) if multiple\n queries are listed. If you check \"One message per "; #line 67 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ",\" each "; #line 67 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " that matches the search will be sent in its own email message.\n</p>\n\n<p>"; #line 76 "template\en\default\whine\schedule.html.tmpl" if ($stash->get(['Param', [ 'timezone' ]])) { $output .= "\n All times are server local time ("; #line 73 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('upper') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'timezone' ]]); &$_tt_filter($output); }; $output .= ")."; } else { $output .= "\n All times are server local time."; } $output .= "\n</p>\n\n<form method=\"post\" action=\"editwhines.cgi\">\n"; $output .= "\n<input type=\"submit\" value=\"Update / Commit\" name=\"commit\"\n style=\"display: none;\" id=\"commit\">\n<input type=\"hidden\" name=\"update\" value=\"1\">\n<input type=\"hidden\" name=\"token\" value=\""; #line 85 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('token'); &$_tt_filter($output); }; $output .= "\">\n"; #line 308 "template\en\default\whine\schedule.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 .= "\n\n<table cellspacing=\"2\" cellpadding=\"2\" width=\"100%\"\n style=\"border: 1px solid;\">\n <tr>\n <th align=\"left\" bgcolor=\"#FFFFFF\" colspan=\"2\">\n Event: \n </th>\n <td align=\"right\">\n <input type=\"submit\" value=\"Remove Event\"\n name=\"remove_event_"; #line 97 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['event', 0, 'key', 0]); $output .= "\"\n id=\"remove_event_"; #line 98 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['event', 0, 'key', 0]); $output .= "\">\n </td>\n </tr>\n\n <tr>\n <td valign=\"top\" align=\"right\">\n Email subject line:\n </td>\n <td>\n <input type=\"text\" name=\"event_"; #line 107 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['event', 0, 'key', 0]); $output .= "_subject\"\n size=\"60\" maxlength=\"128\" value=\""; #line 109 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['event', 0, 'value', 0, 'subject', 0]); &$_tt_filter($output); }; $output .= "\">\n </td>\n </tr>\n\n <tr>\n <td valign=\"top\" align=\"right\">\n Descriptive text sent within whine message:\n </td>\n <td>"; #line 0 "template\en\default\whine\schedule.html.tmpl" $output .= $context->include('global/textarea.html.tmpl', { 'name' => ("event_" . $stash->get(['event', 0, 'key', 0]) . "_body"), 'minrows' => 3, 'maxrows' => 10, 'defaultrows' => 5, 'cols' => 80, 'defaultcontent' => $stash->get(['event', 0, 'value', 0, 'body', 0]) }); $output .= "\n </td>\n </tr>\n"; #line 216 "template\en\default\whine\schedule.html.tmpl" if ($stash->get(['event', 0, 'value', 0, 'schedule', 0, 'size', 0]) eq 0) { $output .= "\n\n <tr>\n <td valign=\"top\" align=\"right\">\n Schedule:\n </td>\n <td align=\"left\" bgcolor=\"#FFEEEE\">\n Not scheduled to run<br>\n <input type=\"submit\" value=\"Add a new schedule\"\n name=\"add_schedule_"; #line 138 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['event', 0, 'key', 0]); $output .= "\"\n id=\"add_schedule_"; #line 139 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['event', 0, 'key', 0]); $output .= "\">\n </td>\n </tr>\n"; } else { $output .= "\n\n <tr>\n <td valign=\"top\" align=\"right\">\n Schedule:\n </td>\n <td align=\"left\" bgcolor=\"#EEFFEE\">\n\n <table>\n <tr>\n <th>\n Interval\n </th>"; #line 160 "template\en\default\whine\schedule.html.tmpl" if ($stash->get('mail_others')) { $output .= "\n <th>\n Mail to\n </th>"; } $output .= "\n </tr>"; #line 200 "template\en\default\whine\schedule.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['event', 0, 'value', 0, 'schedule', 0]); 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->{'schedule'} = $_tt_value; $output .= "\n <tr>\n <td align=\"left\">\n\n "; $output .= "\n\n <input type=\"hidden\" value=\""; #line 169 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['schedule', 0, 'day', 0]); &$_tt_filter($output); }; $output .= "\"\n name=\"orig_day_"; #line 170 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['schedule', 0, 'id', 0]); $output .= "\">\n <input type=\"hidden\" value=\""; #line 171 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['schedule', 0, 'time', 0]); &$_tt_filter($output); }; $output .= "\"\n name=\"orig_time_"; #line 172 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['schedule', 0, 'id', 0]); $output .= "\">"; #line 173 "template\en\default\whine\schedule.html.tmpl" $output .= $context->process('day_field', { 'val' => $stash->get(['schedule', 0, 'day', 0]) }); #line 174 "template\en\default\whine\schedule.html.tmpl" $output .= $context->process('time_field', { 'val' => $stash->get(['schedule', 0, 'time', 0]) }); $output .= "\n </td>\n <td align=\"left\">"; #line 192 "template\en\default\whine\schedule.html.tmpl" if ($stash->get('mail_others')) { $output .= "\n <input type=\"hidden\" name=\"orig_mailto_type_"; #line 178 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['schedule', 0, 'id', 0]); $output .= "\"\n value=\""; #line 179 "template\en\default\whine\schedule.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['schedule', 0, 'mailto_type', 0]); &$_tt_filter($output); }; $output .= "\">\n <select name=\"mailto_type_"; #line 180 "template\en\default\whine\schedule.html.tmpl" $output .= $stash->get(['schedule', 0, 'id', 0]); $output .= "\">\n <option value=\"0\" "; #line 183 "template\en\default\whine\schedule.html.tmpl" if ($stash->get(['schedule', 0, 'mailto_type', 0]) eq 0) { $output .= "\n selected";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -