Commit 8b0a6508 authored by travis%sedsystems.ca's avatar travis%sedsystems.ca

Bug 250410 : Time tracking summaries

Patch by Christian Reis <kiko@async.com.br> r=jpeshkin a=justdave
parent ca2f67d8
......@@ -894,6 +894,7 @@ if (@bugidlist) {
$vars->{'bugs'} = \@bugs;
$vars->{'buglist'} = \@bugidlist;
$vars->{'buglist_joined'} = join(',', @bugidlist);
$vars->{'columns'} = $columns;
$vars->{'displaycolumns'} = \@displaycolumns;
......
/* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Bugzilla Bug Tracking System.
*
* Contributor(s): Christian Reis <kiko@async.com.br>
*/
td { vertical-align: top }
table.zeroitems, table.realitems {
margin-left: 2.0em;
margin-top: 2px;
border: 1px solid black;
border: 1px solid black;
}
tr.section_total {
background: #000000;
color: #ffffff;
}
td.subtotal {
background: #B0C0D9;
}
.zeroitems .bug_header { background: #d0e0f0 }
.zeroitems .bug_header2 { background: #f9f9f9 }
/* the fixed headers -- .number uses bug_header so hack it here */
.number .bug_header, .number .bug_header2 { background: #d0e0f0 }
.owner_header { background: #d0e0f0 }
/* the details headers */
.number .owner_header, .owner .bug_header { background: #ffffff }
.number .owner_header2, .owner .bug_header2 { background: #EFEFEF }
......@@ -419,6 +419,13 @@
size="10" maxlength="10">
</td>
</tr>
<tr>
<td colspan="6" align="right">
<a href="summarize_time.cgi?id=[% bug.bug_id %]&do_depends=1">
Summarize time (including time for [% terms.bugs %]
blocking this [% terms.bug %])</a>
</td>
</tr>
</table>
[% END %]
......
......@@ -370,6 +370,14 @@
'field',
],
'bug/summarize-time.html.tmpl' => [
'global.grand_total FILTER format("%.2f")',
'subtotal FILTER format("%.2f")',
'work_time FILTER format("%.2f")',
'global.total FILTER format("%.2f")',
],
'bug/time.html.tmpl' => [
'time_unit FILTER format(\'%.1f\')',
'time_unit FILTER format(\'%.2f\')',
......
......@@ -133,8 +133,15 @@
<input type="hidden" name="id" value="[% id FILTER html %]">
[% END %]
<input type="hidden" name="format" value="multiple">
<input type="submit" value="Long Format">
<input type="submit" value="&nbsp;&nbsp;Long Format&nbsp;">
</form>
[% IF UserInGroup(Param('timetrackinggroup')) %]
<form method="post" action="summarize_time.cgi">
<input type="hidden" name="id" value="[% buglist_joined FILTER html %]">
<input type="submit" value="Time Summary">
</form>
[% END %]
</td>
<td>&nbsp;</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment