[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi ticket_summary.html, 1.2.2.2, 1.2.2.3
Mark Wells
mark at wavetail.420.am
Mon Oct 24 16:49:46 PDT 2011
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv10638
Modified Files:
Tag: FREESIDE_2_3_BRANCH
ticket_summary.html
Log Message:
estimated time in hours, #14351
Index: ticket_summary.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/ticket_summary.html,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -w -d -r1.2.2.2 -r1.2.2.3
--- ticket_summary.html 24 Aug 2011 21:00:58 -0000 1.2.2.2
+++ ticket_summary.html 24 Oct 2011 23:49:44 -0000 1.2.2.3
@@ -23,7 +23,7 @@
};
my @titles = ('#', qw(Subject Queue Status Created Due));
-push @titles, 'Estimated<BR>Minutes';
+push @titles, 'Estimated<BR>Hours';
push @titles, 'Priority';
$OUT .= join("\n", map { "<TH VALIGN=\"top\">$_</TH><TH> </TH>" } @titles)
@@ -41,8 +41,11 @@
$td. $ticket->{'status'} . '</TD>'. $space .
$td. $date_formatter->($ticket->{'created'}) . '</TD>'. $space .
$td. $date_formatter->($ticket->{'due'}) . '</TD>'. $space .
-qq!<TD BGCOLOR="#$col" ALIGN="right">!. ($ticket->{'timeestimated'} || '')
-. '</TD>'. $space .
+qq!<TD BGCOLOR="#$col" ALIGN="right">!.
+ ($ticket->{'timeestimated'} ?
+ sprintf('%.1f', $ticket->{'timeestimated'} / 60.0) # .1f?
+ : ''
+ ) . '</TD>'. $space .
qq!<TD BGCOLOR="#$col" ALIGN="right">!;
if ( $can_set_priority ) {
$OUT .= '<INPUT TYPE="hidden" NAME="ticket'.$id.'" VALUE="1">' .
More information about the freeside-commits
mailing list