diff options
Diffstat (limited to 'rt/webrt/Ticket/Elements/ShowLinks')
-rwxr-xr-x | rt/webrt/Ticket/Elements/ShowLinks | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/rt/webrt/Ticket/Elements/ShowLinks b/rt/webrt/Ticket/Elements/ShowLinks new file mode 100755 index 000000000..49795959e --- /dev/null +++ b/rt/webrt/Ticket/Elements/ShowLinks @@ -0,0 +1,61 @@ +Depends on:<BR> +<UL> +% while (my $Link = $Ticket->DependsOn->Next) { +% my $member = $Link->TargetObj; +<LI><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> +[<%$member->Status%>] + +% } +</UL> + +Depended on by:<BR> +<UL> +% while (my $Link = $Ticket->DependedOnBy->Next) { +% my $member = $Link->BaseObj; +<LI><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> +[<%$member->Status%>] +% } +</UL> +Parents:<BR> +<UL> +% while (my $Link = $Ticket->MemberOf->Next) { +% my $member = $Link->TargetObj; +<LI><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> +[<%$member->Status%>] + +% } +</UL> + +Children:<BR> +<& /Ticket/Elements/ShowMembers, Ticket => $Ticket &> +<BR> +Refers to:<BR> +<UL> +% while (my $Link = $Ticket->RefersTo->Next) { +<LI> +% if ($Link->TargetIsLocal) { +% my $member = $Link->TargetObj; + +<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> [<%$member->Status%>]<br> +% } else { +<A HREF="<%$Link->TargetAsHREF%>"><%$Link->Target%></A> +% } +%} +</UL> + +Referred to by:<BR> +<UL> +% while (my $Link = $Ticket->ReferredToBy->Next) { +<LI> +% if ($Link->BaseIsLocal) { +% my $member = $Link->BaseObj; +<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> [<%$member->Status%>]<br> +% } else { +<A HREF="<%$Link->BaseAsHREF%>"><%$Link->Base%></A> +%} +% } +</UL> + +<%ARGS> +$Ticket => undef +</%ARGS> |