Skip to content

Commit

Permalink
Merge branch '5.0/remove-selfservice-asset-listing-bulk-and-title-lin…
Browse files Browse the repository at this point in the history
…ks' into 5.0-trunk
  • Loading branch information
sunnavy committed Dec 11, 2023
2 parents eeb33b2 + 4d96cf8 commit f929b29
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions share/html/User/Elements/AssetList
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,23 @@ my $query_string = $m->comp('/Elements/QueryString',
Order => $QueryProperties{Order},
);

my $search_url =
RT->Config->Get('WebPath') .
'/Search/Results.html?' .
$query_string;
my ($search_url, $bulk_update_title, $bulk_update_url);

my $bulk_update_url =
RT->Config->Get('WebPath') .
'/Asset/Search/Bulk.html?' .
$query_string;
if ($session{CurrentUser}->Privileged) {
$search_url = RT->Config->Get('WebPath') .
'/Search/Results.html?' .
$query_string;
$bulk_update_title = loc('Bulk Update');
$bulk_update_url = RT->Config->Get('WebPath') .
'/Asset/Search/Bulk.html?' .
$query_string;
}

</%init>
<&| /Widgets/TitleBox,
title => $Title,
title_href => $search_url,
titleright => loc('Bulk Update'),
titleright => $bulk_update_title,
titleright_href => $bulk_update_url,
class => "user asset-list",
&>
Expand Down

0 comments on commit f929b29

Please sign in to comment.