[Rt-commit] r3817 - in rt/branches/3.5-TESTING: .
html/Ticket/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Fri Sep 2 12:54:26 EDT 2005
Author: jesse
Date: Fri Sep 2 12:54:26 2005
New Revision: 3817
Added:
rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTime
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/Ticket/Elements/ShowBasics
Log:
r14103 at hualien: jesse | 2005-08-30 06:17:02 -0400
r14075 at hualien: jesse | 2005-08-30 05:56:28 -0400
r13545 at hualien: jesse | 2005-08-19 10:40:41 -0400
r7388 at hualien (orig r3598): alexmv | 2005-08-03 18:39:17 -0400
r5629 at zoq-fot-pik: chmrr | 2005-08-03 18:37:50 -0400
* Show time in hours or days when needed
Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowBasics
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowBasics (original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowBasics Fri Sep 2 12:54:26 2005
@@ -55,18 +55,18 @@
% if ($Ticket->TimeEstimated) {
<tr>
<td class="label"><&|/l&>Estimated</&>:</td>
- <td class="value"><&|/l, $Ticket->TimeEstimated &>[_1] min</&></td>
+ <td class="value"><& ShowTime, minutes => $Ticket->TimeEstimated &></td>
</tr>
% }
% if ($Ticket->TimeWorked) {
<tr>
<td class="label"><&|/l&>Worked</&>:</td>
- <td class="value"><&|/l, $Ticket->TimeWorked &>[_1] min</&></td>
+ <td class="value"><& ShowTime, minutes => $Ticket->TimeWorked &></td>
</tr>
% }
<tr>
<td class="label"><&|/l&>Left</&>:</td>
- <td class="value"><&|/l, $Ticket->TimeLeft &>[_1] min</&></td>
+ <td class="value"><& ShowTime, minutes => $Ticket->TimeLeft &></td>
</tr>
<tr>
<td class="label"><&|/l&>Priority</&>:</td>
Added: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTime
==============================================================================
--- (empty file)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowTime Fri Sep 2 12:54:26 2005
@@ -0,0 +1,10 @@
+% if ($minutes < 60) {
+<&|/l, $minutes &>[_1] min</&>
+% } elsif ($minutes < 60 * 24) {
+<&|/l, sprintf("%.1f",$minutes / 60) &>[quant,_1,hour]</&> (<&|/l, $minutes &>[_1] min</&>)
+% } else {
+<&|/l, sprintf("%.1f",$minutes / 60 / 24) &>[quant,_1,day]</&> (<&|/l, $minutes &>[_1] min</&>)
+% }
+<%ARGS>
+$minutes
+</%ARGS>
\ No newline at end of file
More information about the Rt-commit
mailing list