[Bps-public-commit] r20149 - RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Ticket/Elements/ShowTransaction
ruz at bestpractical.com
ruz at bestpractical.com
Wed Nov 25 17:07:09 EST 2009
Author: ruz
Date: Wed Nov 25 17:07:09 2009
New Revision: 20149
Added:
RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Ticket/Elements/ShowTransaction/
RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Ticket/Elements/ShowTransaction/ModifyDisplay
Log:
don't override ShowTransaction, use callback instead
Added: RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Ticket/Elements/ShowTransaction/ModifyDisplay
==============================================================================
--- (empty file)
+++ RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Ticket/Elements/ShowTransaction/ModifyDisplay Wed Nov 25 17:07:09 2009
@@ -0,0 +1,11 @@
+<%ARGS>
+$titlebar_cmd => undef
+</%ARGS>
+<%INIT>
+return unless $titlebar_cmd;
+
+my $loc_comment = loc('Comment');
+return unless index($$titlebar_cmd, $loc_comment) >= 0;
+
+$$titlebar_cmd =~ s{\[<a [^>]*>$loc_comment</a>\]}{};
+</%INIT>
More information about the Bps-public-commit
mailing list