estimated time in hours, #14351
authormark <mark>
Mon, 24 Oct 2011 23:49:10 +0000 (23:49 +0000)
committermark <mark>
Mon, 24 Oct 2011 23:49:10 +0000 (23:49 +0000)
fs_selfservice/FS-SelfService/cgi/ticket_summary.html

index 1822622..c840ca9 100644 (file)
@@ -23,7 +23,7 @@ my $date_formatter = sub {
 };
 
 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>&nbsp;</TH>" } @titles)
@@ -41,8 +41,11 @@ $td. $ticket->{'queue'} . '</TD>'. $space .
 $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">' .