import rt 3.0.12
[freeside.git] / rt / html / Ticket / Elements / ShowDates
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
25 <TABLE>
26   <TR>
27     <TD class="label"><&|/l&>Created</&>:</TD>
28     <TD class="value"><% $Ticket->CreatedObj->AsString %></TD>
29   </TR>
30   <TR>
31     <TD class="label"><&|/l&>Starts</&>:</TD>
32     <TD class="value"><% $Ticket->StartsObj->AsString %></TD>
33   </TR>
34   <TR>
35     <TD class="label"><&|/l&>Started</&>:</TD>
36     <TD class="value"><% $Ticket->StartedObj->AsString %></TD>
37   </TR>
38   <TR>
39     <TD class="label"><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$Ticket->id%>&Action=SetTold"><&|/l&>Last Contact</&></a>:</TD>
40     <TD class="value"><% $Ticket->ToldObj->AsString %></TD>
41   </TR>
42   <TR>
43     <TD class="label"><&|/l&>Due</&>:</TD>
44     <TD class="value"><% $Ticket->DueObj->AsString  %></TD>
45   </TR>
46   <TR>
47     <TD class="label"><&|/l&>Closed</&>:</TD>
48     <TD class="value"><% $Ticket->ResolvedObj->AsString  %></TD>
49   </TR>
50   <TR>
51     <TD class="label"><&|/l&>Updated</&>:</TD>
52 % my $UpdatedString = $Ticket->LastUpdated ? (loc("[_1] by [_2]", $Ticket->LastUpdatedAsString, $Ticket->LastUpdatedByObj->Name)) : loc("Never");
53 % if ($UpdatedLink) {
54     <TD class="value"><A HREF="#lasttrans"><% $UpdatedString | h %></a></TD>
55 % } else {
56     <TD class="value"><% $UpdatedString | h %></TD>
57 % }
58   </TR>
59 </TABLE>
60 <%ARGS>
61 $Ticket => undef
62 $UpdatedLink => 1
63 </%ARGS>