projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b573244
)
estimated time in hours, #14351
author
mark
<mark>
Mon, 24 Oct 2011 23:49:10 +0000
(23:49 +0000)
committer
mark
<mark>
Mon, 24 Oct 2011 23:49:10 +0000
(23:49 +0000)
fs_selfservice/FS-SelfService/cgi/ticket_summary.html
patch
|
blob
|
history
diff --git
a/fs_selfservice/FS-SelfService/cgi/ticket_summary.html
b/fs_selfservice/FS-SelfService/cgi/ticket_summary.html
index
1822622
..
c840ca9
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/ticket_summary.html
+++ b/
fs_selfservice/FS-SelfService/cgi/ticket_summary.html
@@
-23,7
+23,7
@@
my $date_formatter = sub {
};
my @titles = ('#', qw(Subject Queue Status Created Due));
};
my @titles = ('#', qw(Subject Queue Status Created Due));
-push @titles, 'Estimated<BR>
Minute
s';
+push @titles, 'Estimated<BR>
Hour
s';
push @titles, 'Priority';
$OUT .= join("\n", map { "<TH VALIGN=\"top\">$_</TH><TH> </TH>" } @titles)
push @titles, 'Priority';
$OUT .= join("\n", map { "<TH VALIGN=\"top\">$_</TH><TH> </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 .
$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">' .
qq!<TD BGCOLOR="#$col" ALIGN="right">!;
if ( $can_set_priority ) {
$OUT .= '<INPUT TYPE="hidden" NAME="ticket'.$id.'" VALUE="1">' .