[Rt-commit] rt branch, history-filter, updated. rt-3.8.8-101-gd26c4bd
Shawn Moore
sartak at bestpractical.com
Tue Jun 15 18:57:56 EDT 2010
The branch, history-filter has been updated
via d26c4bd47921e4ca74baec208bfb889784b95f92 (commit)
from 44d92cf6dfb901fe8ea98078f3ae1cec7984e5cc (commit)
Summary of changes:
share/html/Ticket/Elements/ShowTransaction | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit d26c4bd47921e4ca74baec208bfb889784b95f92
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Jun 15 18:58:51 2010 -0400
Add the filter-type class to transactions
diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 6ccbb0c..6ee002c 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<div class="ticket-transaction <% $type_class %> <% $RowNum % 2 ? 'odd' : 'even' %>">
+<div class="ticket-transaction <% $type_classes %> <% $RowNum % 2 ? 'odd' : 'even' %>">
% $m->callback( titlebar_cmd => \$titlebar_commands, Transaction => $Transaction, %ARGS, CallbackName => 'ModifyDisplay' );
<div class="ticket-transaction">
@@ -123,25 +123,28 @@ my $transdate = $Transaction->CreatedAsString();
$transdate =~ s/\s/ /g;
my ($type, $field) = ($Transaction->Type, $Transaction->Field || '');
-my $type_class = $class{ $type };
+my $type_classes = $class{ $type };
-unless ( $type_class ) {
+unless ( $type_classes ) {
if ( $field eq 'Owner' ) {
- $type_class = 'people';
+ $type_classes = 'people';
}
elsif ( $type =~ /^(Status|Set|Told)$/ ) {
if ( $field =~ /^(Told|Starts|Started|Due)$/ ) {
- $type_class = 'dates';
+ $type_classes = 'dates';
}
else {
- $type_class = 'basics';
+ $type_classes = 'basics';
}
}
else {
- $type_class = 'other';
+ $type_classes = 'other';
}
}
+my $filter_type = RT::Transaction->TypeMetadata($type, 'FilterType');
+$type_classes .= ' Type-' . ($filter_type || $type);
+
my $TicketString = '';
if ( $Ticket->Id != $Transaction->Ticket ) {
$TicketString = loc("Ticket #[_1]:", $Transaction->Ticket) .' ';
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list