summaryrefslogtreecommitdiff
path: root/rt/webrt/Ticket/Elements/ShowHistory
blob: 155eaaabd141b9ae5bb8c76ef658e18456a7ce64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<TABLE BORDER=0 width="100%">
<TR>
<TD ALIGN=LEFT>
% if ($ShowTitle) {
<font size=+3>History</font>
% }
&nbsp;</TD>
<TD align=right><font size=-1>Display mode: 
%  if ($ShowHeaders == $Ticket->Id) {
[<A HREF="<%$URIFile%>?id=<%$Ticket->id%>">Brief headers</a>]
<b>[Full headers]</b>
% } else {
<b>[Brief headers]</b>
[<A HREF="<%$URIFile%>?ShowHeaders=<%$Ticket->Id%>&id=<%$Ticket->id%>">Full headers</a>]
%  }
</font>
</TD>
</TR>
</TABLE>

<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>
% while (my $Transaction = $Transactions->Next) {
% $i++;
%	if ($Transactions->IsLast) {
	<a name="lasttrans"></a>
% 	}
	    <& ShowTransaction, Ticket => $Ticket, Transaction => $Transaction, ShowHeaders => $ShowHeaders, Collapsed => $Collapsed, RowNum => $i  &>
% }
</TABLE>
<%INIT>

my $Transactions = $Ticket->Transactions;
my $i;


</%INIT>
<%ARGS>
$URIFile => 'Display.html'
$Ticket => undef
$ShowHeaders => undef
$Collapsed => undef
$ShowTitle => 1
</%ARGS>