summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-11-26 16:33:44 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-11-26 16:33:44 +0100
commitf36dc49c5b475b19201113f8a37cd5b226eed7d4 (patch)
tree2ca93ee6276b3a9b33cd23040c709e28990a397a /template/en/default/bug
parent79a12728c9f7ee27c427d93967f5c38bc467d297 (diff)
downloadbugzilla-f36dc49c5b475b19201113f8a37cd5b226eed7d4.tar.gz
bugzilla-f36dc49c5b475b19201113f8a37cd5b226eed7d4.tar.xz
Bug 812543 - Back port patch from bug 797636 to bmo/4.2 to bring in performance enhancements
r=glob
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/time.html.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/template/en/default/bug/time.html.tmpl b/template/en/default/bug/time.html.tmpl
index e070e7de0..c58675b96 100644
--- a/template/en/default/bug/time.html.tmpl
+++ b/template/en/default/bug/time.html.tmpl
@@ -18,7 +18,7 @@
# Contributor(s): Jeff Hedlund <jeff.hedlund@matrixsi.com>
#
#%]
-
+
[% BLOCK formattimeunit %]
[%# INTERFACE:
# time_unit: the number converting, converts to 2 decimal places
@@ -26,11 +26,7 @@
# 1 decimal place
#%]
[% time_unit = time_unit FILTER format('%.2f') %]
- [% IF time_unit.match('0\Z') %]
- [% time_unit FILTER format('%.1f') %]
- [% ELSE %]
- [% time_unit FILTER format('%.2f') %]
- [% END %]
+ [% time_unit.replace('0\Z', '') %]
[% END %]
[% BLOCK calculatepercentage %]