Skip to content

Commit

Permalink
Merge branch '4.2/ticket-status-in-link-class' into 4.2-trunk
Browse files Browse the repository at this point in the history
Conflicts:
	share/html/Elements/ShowLink
  • Loading branch information
jibsheet committed Feb 14, 2014
2 parents 1f4a0bc + 364df76 commit 2357028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions share/html/Elements/ShowLink
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@
%# END BPS TAGGED BLOCK }}}
% my $member = $URI->Object;
% if (blessed($member) and $member->isa("RT::Ticket") and $member->CurrentUserHasRight('ShowTicket')) {
% my $inactive = $member->QueueObj->IsInactiveStatus($member->Status);
% my $class = $member->QueueObj->IsInactiveStatus($member->Status)
% ? 'ticket-inactive'
% : 'ticket-active';
% $class .= ' '.CSSClass($member->Status);

<span class="<% $inactive ? 'ticket-inactive' : '' %>">
<span class="<% $class %>">
<a href="<% $href %>"><%$member->Id%>: <%$member->Subject || ''%> [<% loc($member->Status) %>]</a> (<& /Elements/ShowUser, User => $member->OwnerObj &>)
</span>

Expand Down

0 comments on commit 2357028

Please sign in to comment.