From 9ff504a21d361a27997e94e74908ab663a57f207 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sat, 11 Jun 2016 12:24:59 -0700 Subject: [PATCH] show unreplied ticket marker in customer ticket lists, #41670 --- FS/FS/TicketSystem/RT_Internal.pm | 4 +++- httemplate/elements/freeside-menu.css | 10 ++++++++++ httemplate/elements/freeside.css | 1 - httemplate/elements/notify-tickets.html | 9 --------- httemplate/elements/table-tickets.html | 11 +++++++++++ 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm index b70ac5360..f8105e640 100644 --- a/FS/FS/TicketSystem/RT_Internal.pm +++ b/FS/FS/TicketSystem/RT_Internal.pm @@ -240,7 +240,8 @@ sub service_tickets { sub _ticket_info { # Takes an RT::Ticket; returns a hashref of the ticket's fields, including # custom fields. Also returns custom and selfservice priority values as - # _custom_priority and _selfservice_priority. + # _custom_priority and _selfservice_priority, and the IsUnreplied property + # as is_unreplied. my $t = shift; my $custom_priority = @@ -265,6 +266,7 @@ sub _ticket_info { if ( $ss_priority ) { $ticket_info{'_selfservice_priority'} = $ticket_info{"CF.{$ss_priority}"}; } + $ticket_info{'is_unreplied'} = $t->IsUnreplied; my $svcnums = [ map { $_->Target =~ /cust_svc\/(\d+)/; $1 } @{ $t->Services->ItemsArrayRef } diff --git a/httemplate/elements/freeside-menu.css b/httemplate/elements/freeside-menu.css index 9533f1950..a72a28bfe 100644 --- a/httemplate/elements/freeside-menu.css +++ b/httemplate/elements/freeside-menu.css @@ -146,3 +146,13 @@ a:visited:hover.fsdarkbutton { overflow:visible; } + +/* elements/notify-tickets.html is in the menu area */ +.dot { + border-radius: 50%; + border: 1px solid black; + width: 1ex; + height: 1ex; + display: inline-block; + margin-top: 0.3ex; +} diff --git a/httemplate/elements/freeside.css b/httemplate/elements/freeside.css index f6d73c2de..8ad724a4f 100644 --- a/httemplate/elements/freeside.css +++ b/httemplate/elements/freeside.css @@ -313,4 +313,3 @@ td.label { color: #ff0000; } - diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index faf998e2b..e661737bc 100644 --- a/httemplate/elements/notify-tickets.html +++ b/httemplate/elements/notify-tickets.html @@ -1,13 +1,4 @@ % if ($enabled) { -
% if ( $UnrepliedTickets->Count > 0 ) { diff --git a/httemplate/elements/table-tickets.html b/httemplate/elements/table-tickets.html index f89f98422..bc02c7c4b 100644 --- a/httemplate/elements/table-tickets.html +++ b/httemplate/elements/table-tickets.html @@ -11,6 +11,7 @@ View % my $bgcolor = ''; + <% mt('#') |h %> <% mt('Subject') |h %> <% mt('Status') |h %> @@ -38,6 +39,16 @@ View +% if ( $ticket->{is_unreplied} ) { + > +% } else { +% # placeholder + + + + ><% $ticket->{id} %> -- 2.11.0