merge RT 4.2.11 and Header changes to disable RT javascript, RT#34237
[freeside.git] / rt / share / html / Elements / ShowLink_Checklist
1 <a href="<%$URI->Resolver->HREF%>">
2 % if ($URI->IsLocal) {
3 % my $member = $URI->Object;
4 % if (UNIVERSAL::isa($member, "RT::Ticket")) {
5 % my $inactive = 0; #$member->QueueObj->IsInactiveStatus($member->Status);
6
7 <span class="<% $inactive ? 'ticket-inactive' : '' %>">
8 <IMG SRC="<%$fsurl%>images/<% $status2image{$member->Status} %>.png" BORDER=0>
9 <%$member->Id%>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
10 %# [<% loc($member->Status) %>]
11 </span>
12
13 % } elsif ( UNIVERSAL::can($member, 'Name')) {
14 <%$URI->Resolver->AsString%>: <%$member->Name%>
15 % } else {
16 <%$URI->Resolver->AsString%>
17 % }
18 % } else {
19 <%$URI->Resolver->AsString%>
20 % }
21 </a>
22 <%ARGS>
23 $URI => undef
24 </%ARGS>
25 <%once>
26
27 my %status2image = (
28   'new'      => 'square_add', #'bullet_add',
29   'open'     => 'square', #'bullet_black',
30   'stalled'  => 'error',
31   'resolved' => 'tick',
32   'rejected' => 'cross',
33   #'deleted'  => 'delete',
34 );
35
36 </%once>