1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Jeff Hedlund <jeff.hedlund@matrixsi.com>
23
[% BLOCK formattimeunit %]
25
# time_unit: the number converting, converts to 2 decimal places
26
# unless the last character is a 0, then it truncates to
29
[% time_unit = time_unit FILTER format('%.2f') %]
30
[% IF time_unit.match('0\Z') %]
31
[% time_unit FILTER format('%.1f') %]
33
[% time_unit FILTER format('%.2f') %]
37
[% BLOCK calculatepercentage %]
42
[% IF (act + rem) > 0 %]
43
[% (act / (act + rem)) * 100
44
FILTER format("%d") %]