3 %# Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
5 %# (Except where explictly superceded by other copyright notices)
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
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.
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.
25 if ($ShowDisplayModes or $ShowTitle) {
29 $title = loc('History');
34 $titleright = loc('Display mode') . ":";
35 if ($ShowHeaders && $ShowHeaders == $Ticket->Id ) {
36 $titleright .= "[<A HREF=\"" . $URIFile . "?id="
38 . loc("Brief headers")
40 . loc("Full headers") . "]</b>";
44 . loc("Brief headers")
48 . $Ticket->Id . "&id="
50 . loc("Full headers") . "</a>]";
53 <& /Elements/TitleBoxStart, title => $title, titleright => $titleright, bodyclass=> ''&>
56 <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>
57 % while (my $Transaction = $Transactions->Next) {
59 % $m->comp('/Elements/Callback', _CallbackName => 'SkipTransaction', Transaction => $Transaction, skip => \$skip, %ARGS);
62 % if ($Transactions->IsLast) {
63 <a name="lasttrans"></a>
65 <& ShowTransaction, Ticket => $Ticket, Transaction => $Transaction, ShowHeaders => $ShowHeaders, Collapsed => $Collapsed, RowNum => $i, ShowTitleBarCommands => $ShowTitleBarCommands, %ARGS &>
68 % if ($ShowDisplayModes or $ShowTitle) {
69 <& /Elements/TitleBoxEnd &>
73 my $Transactions = $Ticket->Transactions;
79 $URIFile => 'Display.html'
84 $ShowDisplayModes => 1
85 $ShowTitleBarCommands => 1