[Rt-commit] r4797 - in rtir/branches/1.9-EXPERIMENTAL: . etc
ruz at bestpractical.com
ruz at bestpractical.com
Wed Mar 22 17:01:52 EST 2006
Author: ruz
Date: Wed Mar 22 17:01:51 2006
New Revision: 4797
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/etc/RTIR_Config.pm
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap
Log:
r995 at cubic-pc: cubic | 2006-03-23 01:03:21 +0300
* "Take or Steal" column map record
Modified: rtir/branches/1.9-EXPERIMENTAL/etc/RTIR_Config.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/etc/RTIR_Config.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/etc/RTIR_Config.pm Wed Mar 22 17:01:51 2006
@@ -223,6 +223,7 @@
'__Requestors__',
'__OwnerName__',
'__DueRelative__',
+ '__TakeOrSteal__',
},
ChildReport => qq{'<B><A HREF="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
Modified: rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap Wed Mar 22 17:01:51 2006
@@ -52,6 +52,19 @@
},
};
+$COLUMN_MAP->{'TakeOrSteal'} = {
+ title => 'Take/Steal',
+ value => sub {
+ my $t = shift;
+ return '' if $t->Owner == $t->CurrentUser->id;
+ my $action = 'Take';
+ $action = 'Steal' if $t->Owner != $RT::Nobody->id;
+ my $link = RT->Config->Get('WebPath') ."/Ticket/Display.html?Action=$action&id=". $t->id;
+ $link = qq{<a href="$link">}. $t->loc($action) .qq{</a>};
+ return \$link;
+ },
+};
+
$COLUMN_MAP->{'RTIR_Radio'} = {
title => \' ',
value => sub {
More information about the Rt-commit
mailing list