[Rt-commit] [svn] r1458 -
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Wed Sep 8 17:19:51 EDT 2004
Author: leira
Date: Wed Sep 8 17:19:51 2004
New Revision: 1458
Modified:
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap
Log:
If something is overdue, set DueRelative to class "overdue".
Note: core RT doesn't have an "overdue" class at this time.
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:19:51 2004
@@ -200,7 +200,16 @@
DueRelative => {
title => 'Due',
attribute => 'Due',
- value => sub { return $_[0]->DueObj->AgeAsString }
+ value => sub {
+ my $date = $_[0]->DueObj;
+ my $now = new RT::Date($RT::SystemUser);
+ $now->SetToNow();
+ my $class;
+ if ($date && $date->Unix > 0 && $date->Unix < $now->Unix) {
+ $class = 'overdue';
+ }
+ return '<span class="' . $class . '">' . $date->AgeAsString . '</span>';
+ }
},
ResolvedRelative => {
title => 'Resolved',
More information about the Rt-commit
mailing list