X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FGlobal%2FMyRT.html;h=04d316cff7a3b90664ebab6180eeb14ce7eaa60b;hp=3dca78fad39d0b9ed687538c7615616f86dc46e4;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/share/html/Admin/Global/MyRT.html b/rt/share/html/Admin/Global/MyRT.html index 3dca78fad..04d316cff 100644 --- a/rt/share/html/Admin/Global/MyRT.html +++ b/rt/share/html/Admin/Global/MyRT.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -48,33 +48,31 @@ <& /Admin/Elements/Header, Title => loc("RT at a glance") &> <& /Elements/Tabs &> -<& /Widgets/SelectionBox:header, nojs => 1 &> - <& /Elements/ListActions, actions => \@actions &>
% for my $pane (@panes) { <&|/Widgets/TitleBox, title => loc('RT at a glance').': '.loc($pane->{Name}), bodyclass => "" &> -<& /Widgets/SelectionBox:show, self => $pane, nojs => 1 &> +<& /Widgets/SelectionBox:show, self => $pane &>
% } <%init> my @actions; -my @items = map { [ "component-$_", $_ ] } sort @{ RT->Config->Get('HomepageComponents') }; +my @items = map { [ "component-$_", loc($_) ] } sort @{ RT->Config->Get('HomepageComponents') }; my $sys = RT::System->new( $session{'CurrentUser'} ); # XXX: put this in savedsearches_to_portlet_items for ( $m->comp( "/Search/Elements/SearchesForObject", Object => $sys )) { - my ( $desc, $search ) = @$_; + my ( $desc, $loc_desc, $search ) = @$_; my $SearchType = $search->Content->{'SearchType'} || 'Ticket'; if ( $SearchType eq 'Ticket' ) { - push @items, [ "system-$desc", $desc ]; + push @items, [ "system-$desc", $loc_desc ]; } else { my $oid = ref($sys) . '-' . $sys->Id . '-SavedSearch-' . $search->Id; - my $type = - ( $SearchType eq 'Ticket' ) - ? 'Saved Search' : $SearchType; # loc - push @items, [ "saved-$oid", loc($type) . ": $desc" ]; + my $type = ( $SearchType eq 'Ticket' ) + ? 'Saved Search' # loc + : $SearchType; + push @items, [ "saved-$oid", loc($type) . ": $loc_desc" ]; } } @@ -86,7 +84,7 @@ my @panes = $m->comp( '/Admin/Elements/ConfigureMyRT', panes => [ 'body', #loc - 'summary', #loc + 'sidebar', #loc ], Action => 'MyRT.html', items => \@items, @@ -95,7 +93,7 @@ my @panes = $m->comp( OnSave => sub { my ( $conf, $pane ) = @_; if (!$has_right) { - push @actions, loc( 'Permission denied' ); + push @actions, loc( 'Permission Denied' ); } else { $default_portlets->SetContent( $conf ); @@ -104,7 +102,7 @@ my @panes = $m->comp( } ); -$m->comp( '/Widgets/SelectionBox:process', %ARGS, self => $_, nojs => 1 ) +$m->comp( '/Widgets/SelectionBox:process', %ARGS, self => $_ ) for @panes;