X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftable-tickets.html;h=b322a5f7ccd388b521acbc49a3296aa6657ef3d1;hp=ffcaf067719495f854b5cd7bbe097676a88e50cb;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=916836bcfff6d378e3bbdfde981bcf496b5c527c diff --git a/httemplate/elements/table-tickets.html b/httemplate/elements/table-tickets.html index ffcaf0677..b322a5f7c 100644 --- a/httemplate/elements/table-tickets.html +++ b/httemplate/elements/table-tickets.html @@ -5,12 +5,16 @@ View <% mt('resolved') |h %>
+% if ( @tickets ) { + <& /elements/table-grid.html &> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + + <% mt('#') |h %> <% mt('Subject') |h %> <% mt('Status') |h %> @@ -26,6 +30,7 @@ View <% mt('Service') |h %> % } + % foreach my $ticket ( @tickets ) { % my $href = FS::TicketSystem->href_ticket($ticket->{id}); @@ -38,6 +43,16 @@ View +% if ( $ticket->{is_unreplied} ) { + > +% } else { +% # placeholder + + + + ><% $ticket->{id} %> @@ -91,6 +106,8 @@ View % } +%} + <%init> @@ -153,7 +170,7 @@ if ( $ss_priority ) { my $format = $conf->config('date_format') || '%Y-%m-%d'; my $date_formatter = sub { - my $time = str2time($_[0], 'GMT'); + my $time = parse_datetime($_[0], 'GMT'); # exclude times within 24 hours of zero ($time > 86400) ? time2str($format, $time) : ''; };