[Rt-commit] [svn] r1464 -
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Wed Sep 8 17:41:43 EDT 2004
Author: leira
Date: Wed Sep 8 17:41:43 2004
New Revision: 1464
Modified:
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap
Log:
Don't put a span around things if it won't do anything.
Modified: rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap Wed Sep 8 17:41:43 2004
@@ -202,11 +202,11 @@
attribute => 'Due',
value => sub {
my $date = $_[0]->DueObj;
- my $class;
if ($date && $date->Unix > 0 && $date->Unix < time()) {
- $class = 'overdue';
+ return '<span class="overdue">' . $date->AgeAsString . '</span>';
+ } else {
+ return $date->AgeAsString;
}
- return '<span class="' . $class . '">' . $date->AgeAsString . '</span>';
}
},
ResolvedRelative => {
More information about the Rt-commit
mailing list