[Rt-commit] r7757 - in rt/branches/3.7-EXPERIMENTAL: .
html/Elements/RT__Ticket
ruz at bestpractical.com
ruz at bestpractical.com
Wed May 2 23:09:06 EDT 2007
Author: ruz
Date: Wed May 2 23:09:06 2007
New Revision: 7757
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Elements/ColumnMap
rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Ticket/ColumnMap
Log:
r5226 at cubic-pc: cubic | 2007-05-03 07:07:28 +0400
* move things from ticket's column map into generic
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/ColumnMap
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/ColumnMap (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/ColumnMap Wed May 2 23:09:06 2007
@@ -7,6 +7,44 @@
# This is scary and should totally be refactored -- jesse
my $COLUMN_MAP = {
+ id => {
+ attribute => 'id',
+ align => 'right',
+ value => sub { return $_[0]->id }
+ },
+
+ Created => {
+ attribute => 'Created',
+ title => 'Created',
+ value => sub { return $_[0]->CreatedObj->AsString }
+ },
+ CreatedRelative => {
+ attribute => 'Created',
+ title => 'Created',
+ value => sub { return $_[0]->CreatedObj->AgeAsString }
+ },
+ CreatedBy => {
+ attribute => 'CreatedBy',
+ title => 'Created By',
+ value => sub { return $_[0]->CreatorObj->Name }
+ },
+ LastUpdated => {
+ attribute => 'LastUpdated',
+ title => 'Last Updated',
+ value => sub { return $_[0]->LastUpdatedObj->AsString }
+ },
+ LastUpdatedRelative => {
+ attribute => 'LastUpdated',
+ title => 'Last Updated',
+ value => sub { return $_[0]->LastUpdatedObj->AgeAsString }
+ },
+ LastUpdatedBy => {
+ attribute => 'LastUpdatedBy',
+ title => 'Last Updated By',
+ value => sub { return $_[0]->LastUpdatedByObj->Name }
+ },
+
+
CheckBox => {
title => sub {
my $name = $_[1] || 'SelectedTickets';
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Ticket/ColumnMap Wed May 2 23:09:06 2007
@@ -102,11 +102,6 @@
attribute => 'Owner',
value => sub { return $_[0]->OwnerObj->Name }
},
- id => {
- attribute => 'id',
- align => 'right',
- value => sub { return $_[0]->id }
- },
Status => {
attribute => 'Status',
value => sub { return loc($_[0]->Status) }
@@ -196,16 +191,6 @@
attribute => 'Started',
value => sub { return $_[0]->StartedObj->AgeAsString }
},
- CreatedRelative => {
- title => 'Created',
- attribute => 'Created',
- value => sub { return $_[0]->CreatedObj->AgeAsString }
- },
- LastUpdatedRelative => {
- title => 'Last Updated',
- attribute => 'LastUpdated',
- value => sub { return $_[0]->LastUpdatedObj->AgeAsString }
- },
ToldRelative => {
title => 'Told',
attribute => 'Told',
@@ -236,25 +221,6 @@
attribute => 'Started',
value => sub { return $_[0]->StartedObj->AsString }
},
- Created => {
- attribute => 'Created',
- value => sub { return $_[0]->CreatedObj->AsString }
- },
- CreatedBy => {
- attribute => 'CreatedBy',
- title => 'Created By',
- value => sub { return $_[0]->CreatorObj->Name }
- },
- LastUpdated => {
- attribute => 'LastUpdated',
- title => 'Last Updated',
- value => sub { return $_[0]->LastUpdatedObj->AsString }
- },
- LastUpdatedBy => {
- attribute => 'LastUpdatedBy',
- title => 'Last Updated By',
- value => sub { return $_[0]->LastUpdatedByObj->Name }
- },
Told => {
attribute => 'Told',
value => sub { return $_[0]->ToldObj->AsString }
More information about the Rt-commit
mailing list