[Bps-public-commit] r20151 - RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Elements/Tabs
ruz at bestpractical.com
ruz at bestpractical.com
Wed Nov 25 19:51:47 EST 2009
Author: ruz
Date: Wed Nov 25 19:51:46 2009
New Revision: 20151
Added:
RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Elements/Tabs/
RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Elements/Tabs/Default
Log:
* change page tabs via callback
Added: RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Elements/Tabs/Default
==============================================================================
--- (empty file)
+++ RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/Elements/Tabs/Default Wed Nov 25 19:51:46 2009
@@ -0,0 +1,24 @@
+<%ARGS>
+$topactions => {}
+$toptabs => {}
+</%ARGS>
+<%INIT>
+
+$topactions->{'0'} = {
+ html => $m->scomp('/Elements/ContactInfo'),
+};
+
+my @hide = map loc($_), 'Simple Search', 'Tools', 'Approval';
+foreach my $k ( keys %$toptabs ) {
+ my $title = $toptabs->{ $k }{'title'};
+ next unless grep $title eq $_, @hide;
+ delete $toptabs->{ $k };
+}
+
+foreach my $k ( keys %$toptabs ) {
+ next unless $toptabs->{ $k }{'title'} eq loc('Tickets');
+
+ $toptabs->{ $k }{'title'} = loc('Search Tickets');
+ last;
+}
+</%INIT>
More information about the Bps-public-commit
mailing list