📄 summarize-time.html.tmpl
字号:
if ($stash->get('cid') % 2) { # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= 2; &$_tt_filter($output); }; } $output .= "\">\n <td> </td>\n <td colspan=\"2\"><b>"; #line 175 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('login_name'); &$_tt_filter($output); }; $output .= "</b></td>\n <td align=\"right\">"; #line 177 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('format', [ '%.2f' ]) || $context->throw($context->error); $output .= $stash->get('work_time'); &$_tt_filter($output); }; $output .= "</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 <tr>\n <td colspan=\"2\"> </td>\n <td align=\"right\">\n <b>Total</b>:\n </td>\n <td align=\"right\" class=\"subtotal\" width=\"100\">\n <b>"; #line 187 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('format', [ '%.2f' ]) || $context->throw($context->error); $output .= $stash->get('subtotal'); &$_tt_filter($output); }; $output .= "</b>\n </td></tr>"; #line 189 "template\en\default\bug\summarize-time.html.tmpl" $stash->set(['global', 0, 'total', 0], $stash->get(['global', 0, 'total', 0]) + $stash->get('subtotal')); } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'section_total' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 229 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get(['global', 0, 'total', 0]) > 0) { $output .= "\n <tr class=\"section_total\">\n <td align=\"left\" width=\"10\">\n <b>Totals</b></td>\n <td colspan=\""; #line 221 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('colspan'); &$_tt_filter($output); }; $output .= "\" align=\"right\"><b>"; #line 221 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('additional'); &$_tt_filter($output); }; $output .= "</b></td>\n <td align=\"right\"> \n <b>"; #line 223 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('format', [ '%.2f' ]) || $context->throw($context->error); $output .= $stash->get(['global', 0, 'total', 0]); &$_tt_filter($output); }; $output .= "</b>\n </td></tr>"; } else { $output .= "\n <tr><td>\n No time allocated during the specified period.\n </td></tr>"; } #line 230 "template\en\default\bug\summarize-time.html.tmpl" $stash->set(['global', 0, 'grand_total', 0], $stash->get(['global', 0, 'grand_total', 0]) + $stash->get(['global', 0, 'total', 0])); } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'buglink' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <a href=\"show_bug.cgi?id="; #line 319 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('id'); &$_tt_filter($output); }; $output .= "\"><b>"; #line 319 "template\en\default\bug\summarize-time.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " "; #line 319 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('id'); &$_tt_filter($output); }; $output .= "</b></a>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'query_form' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n<hr noshade size=1>\n<form method=\"post\" name=\"summary\" style=\"display: inline\" action=\"summarize_time.cgi\">\n<input type=\"hidden\" name=\"do_depends\" value=\""; #line 242 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('do_depends'); &$_tt_filter($output); }; $output .= "\">\n<input type=\"hidden\" name=\"id\" value=\""; #line 243 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['ids', 0, 'join', [ ',' ]]); &$_tt_filter($output); }; $output .= "\">\n<input type=\"hidden\" name=\"do_report\" value=\"1\">\n"; #line 250 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('warn_swap_dates')) { $output .= "\n <h4 style=\"border: 1px solid red; margin: 1em; padding: 0.5em\">The\n end date specified occurs before the start date, which doesn't\n make sense; the dates below have therefore been swapped.</h4>"; } $output .= "\n\n<table>\n<tr>\n<td align=\"right\">\n <b><label accesskey=\"s\" \n for=\"start_date\">Period <u>s</u>tarting</label></b>: \n</td><td colspan=\"3\">\n <input type=\"text\" id=\"start_date\" name=\"start_date\" size=\"11\"\n align=\"right\" value=\""; #line 259 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('start_date'); &$_tt_filter($output); }; $output .= "\" maxlength=\"10\">\n \n <b>and <label accesskey=\"e\" for=\"end_date\"><u>e</u>nding</label></b>: \n <input type=\"text\" name=\"end_date\" size=\"11\" id=\"end_date\"\n align=\"right\" value =\""; #line 263 "template\en\default\bug\summarize-time.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('end_date'); &$_tt_filter($output); }; $output .= "\" maxlength=\"10\">\n</td><td align=\"right\">\n <input type=\"submit\" id=\"summarize\" value=\"Summarize\">\n</td></tr>\n<tr>\n<td> </td><td colspan=\"4\">\n <small>(Dates are optional, and in YYYY-MM-DD format)</small>\n</td>\n<tr><td align=\"right\">\n <b>Group by</b>:\n</td><td colspan=\"2\">\n <input type=\"radio\" name=\"group_by\" id=\"number\" value=\"number\" "; #line 274 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('group_by') eq 'number') { $output .= 'checked="checked"'; } $output .= "><label \n for=\"number\" accesskey=\"n\">"; #line 277 "template\en\default\bug\summarize-time.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " <u>N</u>umber</label>\n <input type=\"radio\" name=\"group_by\" id=\"owner\" value=\"owner\" "; #line 278 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('group_by') eq 'owner') { $output .= 'checked="checked"'; } $output .= "><label \n for=\"owner\" accesskey=\"d\"><u>D</u>eveloper</label>\n</td><td colspan=\"2\">\n <label for=\"ctype\"><b>Format</b></label>: <select name=\"ctype\" id=\"ctype\">\n <option value=\"html\">HTML Report</option>\n </select>\n</td></tr><tr>\n<td> </td><td colspan=\"4\">\n <input type=\"checkbox\" name=\"monthly\" "; #line 288 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('monthly')) { $output .= 'checked="checked"'; } $output .= " id=\"monthly\">\n <label for=\"monthly\" accesskey=\"m\">Split by <u>m</u>onth</label>\n "; $output .= "\n \n <input type=\"checkbox\" name=\"detailed\" "; #line 293 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('detailed')) { $output .= 'checked="checked"'; } $output .= " id=\"detailed\">\n <label for=\"detailed\" accesskey=\"t\">De<u>t</u>ailed summaries</label>\n \n <input type=\"checkbox\" name=\"inactive\" "; #line 297 "template\en\default\bug\summarize-time.html.tmpl" if ($stash->get('inactive')) { $output .= 'checked="checked"'; } $output .= " id=\"inactive\">\n <label for=\"inactive\" accesskey=\"i\">Also show <u>i</u>nactive\n "; #line 300 "template\en\default\bug\summarize-time.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= "</label>\n</td>\n</tr></table>\n\n</form>\n<script type=\"application/x-javascript\">\n<!--\n document.forms['summary'].start_date.focus()\n//--></script>\n<hr noshade size=1>"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'number_report' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 141 "template\en\default\bug\summarize-time.html.tmpl" $stash->set(['global', 0, 'total', 0], 0); $stash->set(['global', 0, 'owner_count', 0], { }); $stash->set(['global', 0, 'bug_count', 0], { }); $output .= "\n\n <table cellpadding=\"4\" cellspacing=\"0\" width=\"90%\" class=\"realitems number\">"; #line 144 "template\en\default\bug\summarize-time.html.tmpl" $stash->set('keys', $stash->get(['sort_bug_keys', [ $stash->get(['workdata', 0, 'keys', 0]) ]])); #line 148 "template\en\default\bug\summarize-time.html.tmpl" # FOREACH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -