projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8950731
)
show unreplied ticket marker in customer ticket lists, #41670
author
Mark Wells
<mark@freeside.biz>
Sat, 11 Jun 2016 19:24:59 +0000
(12:24 -0700)
committer
Mark Wells
<mark@freeside.biz>
Sun, 12 Jun 2016 06:22:32 +0000
(23:22 -0700)
FS/FS/TicketSystem/RT_Internal.pm
patch
|
blob
|
history
httemplate/elements/freeside-menu.css
patch
|
blob
|
history
httemplate/elements/freeside.css
patch
|
blob
|
history
httemplate/elements/notify-tickets.html
patch
|
blob
|
history
httemplate/elements/table-tickets.html
patch
|
blob
|
history
diff --git
a/FS/FS/TicketSystem/RT_Internal.pm
b/FS/FS/TicketSystem/RT_Internal.pm
index
1c4513e
..
ffee484
100644
(file)
--- 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
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 =
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}"};
}
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 }
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
a66ebc0
..
365b9d4
100644
(file)
--- a/
httemplate/elements/freeside-menu.css
+++ b/
httemplate/elements/freeside-menu.css
@@
-142,3
+142,13
@@
a:visited:hover.fsdarkbutton {
overflow:visible;
}
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
7bf374c
..
fb5e7d9
100644
(file)
--- a/
httemplate/elements/freeside.css
+++ b/
httemplate/elements/freeside.css
@@
-341,3
+341,5
@@
div.package-marker-change_from {
border-left: solid #bbffbb 30px;
display: inline-block;
}
border-left: solid #bbffbb 30px;
display: inline-block;
}
+
+
diff --git
a/httemplate/elements/notify-tickets.html
b/httemplate/elements/notify-tickets.html
index
faf998e
..
e661737
100644
(file)
--- a/
httemplate/elements/notify-tickets.html
+++ b/
httemplate/elements/notify-tickets.html
@@
-1,13
+1,4
@@
% if ($enabled) {
% if ($enabled) {
-<style>
-.dot {
- border-radius: 50%;
- border: 1px solid black;
- width: 1ex;
- height: 1ex;
- display: inline-block;
-}
-</style>
<div style="font-weight: bold; vertical-align: bottom; text-align: left">
% if ( $UnrepliedTickets->Count > 0 ) {
<a href="<% $fsurl %>rt/Search/UnrepliedTickets.html">
<div style="font-weight: bold; vertical-align: bottom; text-align: left">
% if ( $UnrepliedTickets->Count > 0 ) {
<a href="<% $fsurl %>rt/Search/UnrepliedTickets.html">
diff --git
a/httemplate/elements/table-tickets.html
b/httemplate/elements/table-tickets.html
index
d722c9d
..
b322a5f
100644
(file)
--- a/
httemplate/elements/table-tickets.html
+++ b/
httemplate/elements/table-tickets.html
@@
-14,6
+14,7
@@
View
<THEAD>
<TR>
<THEAD>
<TR>
+ <TH CLASS="grid" BGCOLOR="#cccccc"></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('#') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Subject') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Status') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('#') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Subject') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Status') |h %></TH>
@@
-42,6
+43,16
@@
View
<TR>
<TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
<TR>
<TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
+% if ( $ticket->{is_unreplied} ) {
+ <A CLASS="dot" STYLE="background-color: green" HREF=<%$href%>>
+% } else {
+% # placeholder
+ <A CLASS="dot" STYLE="visibility: hidden" HREF=<%$href%>>
+% }
+ </A>
+ </TD>
+
+ <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
<A HREF=<%$href%>><% $ticket->{id} %></A>
</TD>
<A HREF=<%$href%>><% $ticket->{id} %></A>
</TD>