import rt 3.8.11
[freeside.git] / rt / html / Ticket / Elements / ShowLinks
1 %# BEGIN LICENSE BLOCK
2 %# 
3 %# Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
4 %# 
5 %# (Except where explictly superceded by other copyright notices)
6 %# 
7 %# This work is made available to you under the terms of Version 2 of
8 %# the GNU General Public License. A copy of that license should have
9 %# been provided with this software, but in any event can be snarfed
10 %# from www.gnu.org.
11 %# 
12 %# This work is distributed in the hope that it will be useful, but
13 %# WITHOUT ANY WARRANTY; without even the implied warranty of
14 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 %# General Public License for more details.
16 %# 
17 %# Unless otherwise specified, all modifications, corrections or
18 %# extensions to this work which alter its source code become the
19 %# property of Best Practical Solutions, LLC when submitted for
20 %# inclusion in the work.
21 %# 
22 %# 
23 %# END LICENSE BLOCK
24 <table>
25   <tr>
26     <td class="labeltop"><&|/l&>Depends on</&>:</td>
27     <td class="value">
28 <ul>
29 % while (my $Link = $Ticket->DependsOn->Next) {
30 <li><& ShowLink, URI => $Link->TargetURI &>
31 % }
32 </ul>
33     </td>
34   </tr>
35   <tr>
36     <td class="labeltop"><&|/l&>Depended on by</&>:</td>
37     <td class="value">
38 <ul>
39 % while (my $Link = $Ticket->DependedOnBy->Next) {
40 <li><& ShowLink, URI => $Link->BaseURI &>
41 % }
42 </ul>
43     </td>
44   </tr>
45   <tr>
46     <td class="labeltop"><&|/l&>Parents</&>:</td>
47     <td class="value">
48 <ul>
49 % while (my $Link = $Ticket->MemberOf->Next) {
50 <li><& ShowLink, URI => $Link->TargetURI &>
51 % }
52 </ul>
53     </td>
54   </tr>
55   <tr>
56     <td class="labeltop"><&|/l&>Children</&>:</td>
57     <td class="value"><& /Ticket/Elements/ShowMembers, Ticket => $Ticket &></td>
58   </tr>
59   <tr>
60     <td class="labeltop"><&|/l&>Refers to</&>:</td>
61     <td class="value">
62 <ul>
63 % while (my $Link = $Ticket->RefersTo->Next) {
64 <li><& ShowLink, URI => $Link->TargetURI &>
65 % }
66 </ul>
67     </td>
68   </tr>
69   <tr>
70     <td class="labeltop"><&|/l&>Referred to by</&>:</td>
71     <td class="value">
72     <ul>
73 % while (my $Link = $Ticket->ReferredToBy->Next) {
74 <li><& ShowLink, URI => $Link->BaseURI &>
75 % }
76 </ul>
77     </td>
78   </tr>
79
80 % # Allow people to add more rows to the table                                                                                                                           
81 %  $m->comp('/Elements/Callback', %ARGS );
82
83 </table>
84
85 <%ARGS>
86 $Ticket => undef
87 </%ARGS>