Permalink
Browse files

Add our link as the penultimate tab

  • Loading branch information...
jibsheet committed Jul 8, 2011
1 parent ef60019 commit 33e6abd7d05beaab41b966b6d52b9bd131d4040d
Showing with 5 additions and 1 deletion.
  1. +5 −1 html/Callbacks/ActivityReports/Elements/Tabs/Privileged
@@ -57,8 +57,12 @@ my $query_string = sub {
if ( $request_path =~ qr{^/Search/(?:Article|Build|Bulk|Chart|Graph|Results)\.html} ) {
my $tabs = PageMenu;
+ my $last = ($tabs->children)[-1];
+ my $sort_order = $last->sort_order;
+ $last->sort_order( $sort_order + 1 );
$tabs->child( 'activity' => title => loc('Generate reports'),
- path => '/Reports/Activity/index.html?Query=' .$m->request_args->{'Query'} );
+ path => '/Reports/Activity/index.html?Query=' .$m->request_args->{'Query'},
+ sort_order => $sort_order );
}
</%INIT>

0 comments on commit 33e6abd

Please sign in to comment.