summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/edit.html.tmpl44
1 files changed, 23 insertions, 21 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 62e25f10a..575c0ea07 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -34,27 +34,29 @@
[% PROCESS bug/navigate.html.tmpl %]
[% PROCESS bug/time.html.tmpl %]
-<script type="text/javascript" language="JavaScript">
-<!--
-var fRemainingTime = [% bug.remaining_time %]; // holds the original value
-function adjustRemainingTime() {
- // subtracts time spent from remaining time
- var new_time;
-
- new_time =
- fRemainingTime - document.changeform.work_time.value;
- // get upto 2 decimal places
- document.changeform.remaining_time.value =
- Math.round(new_time * 100)/100;
-}
-
-function updateRemainingTime() {
- // if the remaining time is changed manually, update fRemainingTime
- fRemainingTime = document.changeform.remaining_time.value;
-}
-
-//-->
-</script>
+[% IF UserInGroup(Param('timetrackinggroup')) %]
+ <script type="text/javascript" language="JavaScript">
+ <!--
+ var fRemainingTime = [% bug.remaining_time %]; // holds the original value
+ function adjustRemainingTime() {
+ // subtracts time spent from remaining time
+ var new_time;
+
+ new_time =
+ fRemainingTime - document.changeform.work_time.value;
+ // get upto 2 decimal places
+ document.changeform.remaining_time.value =
+ Math.round(new_time * 100)/100;
+ }
+
+ function updateRemainingTime() {
+ // if the remaining time is changed manually, update fRemainingTime
+ fRemainingTime = document.changeform.remaining_time.value;
+ }
+
+ //-->
+ </script>
+[% END %]
<hr>