X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fticket_summary.html;h=94043bfb63aa3f6201e762a8f1ba989e77f3f3cd;hb=2d3ab45cd0b35cb929198e2ad36a1ec9a3b4d93d;hp=fc50f872f6241f2d3e4e8fee873ded7b58344670;hpb=b4dc48b659f32cab30f96d39568fad9715212a4e;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/ticket_summary.html b/fs_selfservice/FS-SelfService/cgi/ticket_summary.html index fc50f872f..94043bfb6 100644 --- a/fs_selfservice/FS-SelfService/cgi/ticket_summary.html +++ b/fs_selfservice/FS-SelfService/cgi/ticket_summary.html @@ -1,17 +1,17 @@ - + <%= -my $col1 = "ffffff"; -my $col2 = "dddddd"; +my $col1 = $stripe1_bgcolor || "#ffffff"; +my $col2 = $stripe2_bgcolor || "#dddddd"; my $col = $col1; my $can_set_priority = grep { exists($_->{'_selfservice_priority'}) } @tickets; if ( $can_set_priority ) { + $OUT .= qq!! . - qq!! . qq!!; } $date_format ||= '%Y-%m-%d'; @@ -22,15 +22,18 @@ my $date_formatter = sub { }; my @titles = ('#', qw(Subject Queue Status Created Due)); -push @titles, 'Estimated
Minutes'; +push @titles, 'Estimated
Hours'; push @titles, 'Priority'; -$OUT .= join("\n", map { "" } @titles) +$box_bgcolor ||= '#c0c0c0'; +my $th = qq($th> " } @titles) . ''; foreach my $ticket ( @tickets ) { my $id = $ticket->{'id'}; - my $td = qq!'; my $link = qq!!; $OUT .= '' . @@ -40,28 +43,34 @@ $td. $ticket->{'queue'} . ''. $space . $td. $ticket->{'status'} . ''. $space . $td. $date_formatter->($ticket->{'created'}) . ''. $space . $td. $date_formatter->($ticket->{'due'}) . ''. $space . -qq!'. $space . -qq!'. $space . +qq!'; if ( exists($ticket_error{$id}) ) { # display error message compactly - $OUT .= ''; + } else { + $OUT .= $td.''; } } else { - $OUT .= ($ticket->{'content'} || $ticket->{'priority'}) . ''; + $OUT .= ($ticket->{'content'} || $ticket->{'priority'}) . ''. + $td.''; } $OUT .= ''; $col = $col eq $col1 ? $col2 : $col1; } #foreach my $ticket if ( $can_set_priority ) { - $OUT .= ''; } %>
Open Tickets
Open Tickets
$_ $_
!; + my $td = qq!!; my $space = $td.' 
!. ($ticket->{'timeestimated'} || '') -. '!; +qq!!. + ($ticket->{'timeestimated'} ? + sprintf('%.1f', $ticket->{'timeestimated'} / 60.0) # .1f? + : '' + ) . '!; if ( $can_set_priority ) { $OUT .= '' . '*
+ $OUT .= '