[Rt-commit] rt branch, 4.6/reapply-add-reports-menu, created. rt-4.4.2-92-g85b586edd
? sunnavy
sunnavy at bestpractical.com
Fri Feb 16 14:56:31 EST 2018
The branch, 4.6/reapply-add-reports-menu has been created
at 85b586eddf89bdfdb7606552fc838855b31a2335 (commit)
- Log -----------------------------------------------------------------
commit 85b586eddf89bdfdb7606552fc838855b31a2335
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sat Feb 17 00:48:14 2018 +0800
reapply dropped changes of "Add Reports menu"
original commit is 1b78e828, it's been merged but the the menu part
change in /Elements/Tabs got dropped accidently later(probably when we
merged another change to move related code to MenuBuilder.pm)
diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm
index d68ad6cbc..604d00875 100644
--- a/lib/RT/Interface/Web/MenuBuilder.pm
+++ b/lib/RT/Interface/Web/MenuBuilder.pm
@@ -164,6 +164,27 @@ sub BuildMainNav {
$search->child( assets => title => loc("Assets"), path => "/Asset/Search/" )
if $current_user->HasRight( Right => 'ShowAssetsMenu', Object => RT->System );
+ my $reports = $top->child( reports =>
+ title => loc('Reports'),
+ description => loc('Reports summarizing ticket resolution and status'),
+ path => loc('/Reports'),
+ );
+ $reports->child( resolvedbyowner =>
+ title => loc('Resolved by owner'),
+ path => '/Reports/ResolvedByOwner.html',
+ description => loc('Examine tickets resolved in a queue, grouped by owner'),
+ );
+ $reports->child( resolvedindaterange =>
+ title => loc('Resolved in date range'),
+ path => '/Reports/ResolvedByDates.html',
+ description => loc('Examine tickets resolved in a queue between two dates'),
+ );
+ $reports->child( createdindaterange =>
+ title => loc('Created in a date range'),
+ path => '/Reports/CreatedByDates.html',
+ description => loc('Examine tickets created in a queue between two dates'),
+ );
+
if ($current_user->HasRight( Right => 'ShowArticlesMenu', Object => RT->System )) {
my $articles = $top->child( articles => title => loc('Articles'), path => "/Articles/index.html");
$articles->child( articles => title => loc('Overview'), path => "/Articles/index.html" );
-----------------------------------------------------------------------
More information about the rt-commit
mailing list