[Rt-commit] r7113 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Mar 2 14:33:47 EST 2007
Author: ruz
Date: Fri Mar 2 14:33:46 2007
New Revision: 7113
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransaction
Log:
r4586 at cubic-pc: cubic | 2007-02-15 23:47:16 +0300
* minor
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransaction
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransaction (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransaction Fri Mar 2 14:33:46 2007
@@ -43,26 +43,26 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<div class="ticket-transaction<% $type_class && " $type_class" %><% $RowNum % 2 ? ' odd' : ' even' %>">
+<div class="ticket-transaction <% $type_class %> <% $RowNum % 2 ? 'odd' : 'even' %>">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr>
<td rowspan="2" valign="top" class="type">
- <a name="txn-<%$Transaction->Id%>" href="<% $DisplayPath %>#txn-<%$Transaction->Id%>">#</a>
+ <a name="txn-<% $Transaction->Id %>" href="<% $DisplayPath %>#txn-<% $Transaction->Id %>">#</a>
<% $LastTransaction ? '<a name="lasttrans"> </a>' : ' ' |n %>
</td>
<td class="date"><% $transdate|n %></td>
% my $desc = $Transaction->BriefDescription;
% $m->callback( text => \$desc, Transaction => $Transaction, %ARGS, CallbackName => 'ModifyDisplay' );
<td class="description">
- <%$Transaction->CreatorObj->Name%> - <%$TicketString%> <%$desc%>
+ <% $Transaction->CreatorObj->Name %> - <% $TicketString %> <% $desc %>
</td>
- <td class="time-taken"><%$TimeTaken%></td>
- <td class="actions"><%$titlebar_commands|n%></td>
+ <td class="time-taken"><% $TimeTaken %></td>
+ <td class="actions"><% $titlebar_commands |n %></td>
</tr>
<tr>
<td colspan="4" class="content">
-% if ($Transaction->CustomFieldValues->Count) {
+% if ( $Transaction->CustomFieldValues->Count ) {
<& /Elements/ShowCustomFields, Object => $Transaction &>
% }
% $m->comp('ShowTransactionAttachments', %ARGS, Parent => 0) unless ($Collapsed ||!$ShowBody);
@@ -150,7 +150,7 @@
my @DisplayHeaders=qw ( _all);
-if ( $Transaction->Type =~ /EmailRecord$/ ) {
+if ( $type =~ /EmailRecord$/ ) {
@DisplayHeaders = qw(To Cc Bcc);
my $aid =
@@ -175,19 +175,17 @@
}
if ( $Attachments->[0] && $ShowTitleBarCommands ) {
- if ( $Transaction->TicketObj->CurrentUserHasRight('ReplyToTicket')
- or $Transaction->TicketObj->CurrentUserHasRight('ModifyTicket')) {
+ my $can_modify = $Transaction->TicketObj->CurrentUserHasRight('ModifyTicket');
+ if ( $can_modify || $Transaction->TicketObj->CurrentUserHasRight('ReplyToTicket') ) {
$titlebar_commands .=
- "[<a href=\"".$UpdatePath."?id="
- . $Transaction->Ticket
- . "&QuoteTransaction="
- . $Transaction->Id
+ "[<a href=\"".$UpdatePath
+ . "?id=" . $Transaction->Ticket
+ . "&QuoteTransaction=" . $Transaction->Id
. "&Action=Respond\">"
. loc('Reply')
. "</a>] ";
}
- if ( $Transaction->TicketObj->CurrentUserHasRight('CommentOnTicket')
- or $Transaction->TicketObj->CurrentUserHasRight('ModifyTicket')) {
+ if ( $can_modify || $Transaction->TicketObj->CurrentUserHasRight('CommentOnTicket') ) {
$titlebar_commands .=
"[<a href=\"".$UpdatePath."?id="
. $Transaction->Ticket
More information about the Rt-commit
mailing list