projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.14 (#13852)
[freeside.git]
/
rt
/
share
/
html
/
Admin
/
Global
/
MyRT.html
diff --git
a/rt/share/html/Admin/Global/MyRT.html
b/rt/share/html/Admin/Global/MyRT.html
index
edee2df
..
04d316c
100644
(file)
--- a/
rt/share/html/Admin/Global/MyRT.html
+++ b/
rt/share/html/Admin/Global/MyRT.html
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
7
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-46,38
+46,33
@@
%#
%# END BPS TAGGED BLOCK }}}
<& /Admin/Elements/Header, Title => loc("RT at a glance") &>
%#
%# END BPS TAGGED BLOCK }}}
<& /Admin/Elements/Header, Title => loc("RT at a glance") &>
-<& /Admin/Elements/SystemTabs,
- current_tab => 'Admin/Global/MyRT.html',
- Title => loc("RT at a glance"),
-&>
-
-<& /Widgets/SelectionBox:header, nojs => 1 &>
+<& /Elements/Tabs &>
<& /Elements/ListActions, actions => \@actions &>
<br />
% for my $pane (@panes) {
<&|/Widgets/TitleBox, title => loc('RT at a glance').': '.loc($pane->{Name}), bodyclass => "" &>
<& /Elements/ListActions, actions => \@actions &>
<br />
% 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 &></&>
<br />
% }
<%init>
my @actions;
<br />
% }
<%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 $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' ) {
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;
} 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" ];
}
}
}
}
@@
-89,7
+84,7
@@
my @panes = $m->comp(
'/Admin/Elements/ConfigureMyRT',
panes => [
'body', #loc
'/Admin/Elements/ConfigureMyRT',
panes => [
'body', #loc
- 's
ummary
', #loc
+ 's
idebar
', #loc
],
Action => 'MyRT.html',
items => \@items,
],
Action => 'MyRT.html',
items => \@items,
@@
-98,7
+93,7
@@
my @panes = $m->comp(
OnSave => sub {
my ( $conf, $pane ) = @_;
if (!$has_right) {
OnSave => sub {
my ( $conf, $pane ) = @_;
if (!$has_right) {
- push @actions, loc( 'Permission
d
enied' );
+ push @actions, loc( 'Permission
D
enied' );
}
else {
$default_portlets->SetContent( $conf );
}
else {
$default_portlets->SetContent( $conf );
@@
-107,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;
for @panes;