[Rt-commit] rt branch, 3.9-menu_index_page, updated. rt-3.9.7-25-ge296692

Kevin Falcone falcone at bestpractical.com
Mon Dec 13 16:56:31 EST 2010


The branch, 3.9-menu_index_page has been updated
       via  e29669269ce1ae92cf828c97e368036cb4a326d3 (commit)
       via  5d740536d2d576788a58a7132cceea9b762b84ef (commit)
       via  336a0a1f6585b87663ab06b8adb2c1decc965c7e (commit)
       via  99a2f715046cbfd79c9e725f78a722412a846279 (commit)
       via  94b86bc0c7e34fee7c970b075209d206ce6cf4eb (commit)
       via  7a39c8b8dfb10a761ce2e82275c9bb347d4f8279 (commit)
       via  85a98528fcd48f98f84ad5baa2ab49c8a950af86 (commit)
       via  d627176b7b41b9098aa6740ff51773896fd11745 (commit)
       via  287110f2bcc85e06614e9f077897242ab57ac78c (commit)
       via  e984f34892725def8df50a4d64479056b79447f9 (commit)
       via  188142918bb51cfc5cf4f82e77aae8c157b87d6a (commit)
       via  235108cfa5fa07107678fd1b66ddec39bcffbc8a (commit)
       via  bf8dde237b10a31c2b689d45a77d8df02279c18d (commit)
       via  b118b4f11de7677ff7117f81069c46451c31a510 (commit)
       via  f5f1aa7d4c30494a317827e671881ea2898b9a46 (commit)
       via  d76fd32ba297e69c17f6c6e64c5e3f8f09acc35b (commit)
       via  50655b90dcbf435210cbd8beba4e038d5fac1fd2 (commit)
       via  edcd50ef893c316bd3d3cfeb3812c218d4a17604 (commit)
       via  950ebab4be898bc01910c6dd4c16a1765d236c05 (commit)
       via  87e97a0b7a55274e88522dc413ce8f461d3b6cc2 (commit)
       via  f408beefa34c77ee822ebc6063075777a47f0060 (commit)
       via  e0fc7782c05ed0faa59d33603a9701da3f28ec1e (commit)
       via  91049e775f12fb1de7a055d93f3de751ff0bc30d (commit)
       via  e4aaf4a5fbd41ee38d1856552f40ecdcf0534ad0 (commit)
       via  e6d22ccc09613485b3057b224e10de3632b8e7f5 (commit)
       via  b26c81eae3fcb723879f035de328f7ea4bdb9ea0 (commit)
       via  b9acd4c137bdc560a7f070686486d0d8ccd64ddb (commit)
       via  bdfff712437663f703c51f733a499288b89e26e2 (commit)
       via  0755275d38687dd96d67f331cc4f90c25ba50974 (commit)
       via  be0994742af91038807776e963262086c1d6b68b (commit)
       via  9b666321a3f46291b4a79d445259d72919a80e0f (commit)
       via  f764e807907e22af069013aecc6ed071dd59d556 (commit)
       via  d8eba45ae5cddba9c9c7fa76d2062b955d36ea52 (commit)
       via  6f87b8b0b22e7b9fc7480e56b05794ef994fdbe3 (commit)
       via  6b029b71232932722b59f7b8d8380604094639f7 (commit)
       via  460622e6daf0efc1e2cfbb34d5783159f376f50f (commit)
       via  7caefcbb211b43b281f766476187dc8b8027c4aa (commit)
       via  868f585e4b36aa4f5dedc12d9a3b147477e35f7b (commit)
       via  9d8d1546f51307b1f26f334ce4d42eb93b0c3961 (commit)
       via  11ffd66a8cdb89163f45e4e3af43ce1a7724ffb0 (commit)
       via  cb32d9a66c5e9b8c6de05a7087962c9a398cba30 (commit)
       via  0ab2a5ffcee3cb8fe32184c72a511235edca6eed (commit)
       via  b48df68919e190d7bdb5249e458382bac4428c30 (commit)
       via  f701c40700d32c4a4ad5917899dbe0853f53ce2e (commit)
       via  e7bc4373f128dd0ed7ff2bcdf4b7b4f3b480c64d (commit)
       via  d5721a62f65dfd8081c4235cfb582ff3dcf0234f (commit)
       via  e0da82a6ee54f8cdb9e254c7722258972f2ee415 (commit)
       via  240a0dbbce3a0e1e50962106e2a2540a13ab6de2 (commit)
       via  856426b2a0489a7fc1d098f6d7bc92a8d6112ffb (commit)
       via  f22ed8e6abde5b771232993ad41565fd877587cb (commit)
       via  3287035d095e4b4174ee65b59b65cd44099c69d4 (commit)
       via  b6fd75f660b44f4842a9a0587ca533800763f106 (commit)
       via  6c7977faebe6427aca6c8881f7fafbcd64a7781c (commit)
       via  dbdfca4b6dd2945988173df192fe430074187e91 (commit)
       via  0944cddc8607f73cb3df6715131b7c3e80419cdc (commit)
       via  c7884e6b772355e5dd2b84259b22d02d9e571ab7 (commit)
       via  7f129b076f5ff087a55e59ebb9e91c812d8118b9 (commit)
       via  70cf6c5626629a4756203c6835ea638b1e38f893 (commit)
       via  c0eb022dc1ddec7467baf26c3ece12dd78c2f8fd (commit)
       via  fcb23d724cee6cf58dbd15ee8354f947de146ffb (commit)
       via  1826f20e159b63d87c0f21980f592ee2422f4b59 (commit)
       via  88d2fa854f8957b0d7f589bc14dd366424687e61 (commit)
       via  5cfe42f5303fdcabf5b25654643ed9af6b76585c (commit)
       via  88d18cde6e8fabbc6868432ddad33a89c9b13b9c (commit)
       via  96af87f6443d576adcafc1ee58684b7989bf2b98 (commit)
       via  89e6992cb066333b6485cb3645e668bc20b72946 (commit)
       via  a13aa111b176f8cf5562e5d92f3570188af1794e (commit)
       via  07407fb17635470e7085960b81d8f55e9c3e9cb7 (commit)
       via  93d684c3df7f085435537e801ec22541d7228630 (commit)
       via  5b9cc9cc62de3434a2034a173529caa44b931b60 (commit)
       via  6f79935cf4954945b4e665de32c2b3c0beba1268 (commit)
       via  6eff0bf322514d17aad350fe6f8feb3a127f1500 (commit)
       via  01fa70cbbec4fc5914b1978c693d459b40266f23 (commit)
       via  8d1edfb9c65950a1e128c763a5cfa4011e1523e5 (commit)
       via  ceae04d45e780051107bd12f012e47281cd65807 (commit)
       via  50952df8b6c4a5b24e096c66ee56a99de8721a41 (commit)
       via  b542a564397bf7f8b477b3ce072bbc1bf41104b4 (commit)
      from  fbcedff7588250771e72747e17fb26d16d010650 (commit)

Summary of changes:
 Makefile.in                                        |    4 -
 README                                             |   20 ++--
 UPGRADING                                          |   14 +-
 bin/rt-mailgate.in                                 |    6 +-
 bin/rt.in                                          |    4 +-
 config.layout                                      |    6 +-
 configure.ac                                       |    4 +-
 docs/timezones_in_charts.pod                       |   30 +++---
 docs/web_deployment.pod                            |   40 +++---
 etc/RT_Config.pm.in                                |   19 +++-
 lib/RT/Crypt/GnuPG.pm                              |    2 +-
 lib/RT/CustomFieldValue_Overlay.pm                 |   19 +++
 lib/RT/CustomField_Overlay.pm                      |   50 +++++---
 lib/RT/Dashboard.pm                                |   62 ++++++++++
 lib/RT/Groups_Overlay.pm                           |   28 ++++-
 lib/RT/I18N.pm                                     |   61 ++++++----
 lib/RT/Interface/Email.pm                          |    7 +-
 lib/RT/Interface/Email/Auth/GnuPG.pm               |    2 +-
 lib/RT/SQL.pm                                      |    2 +-
 lib/RT/Scrips_Overlay.pm                           |   14 ++-
 lib/RT/Search/Googleish.pm                         |    2 +-
 lib/RT/Shredder.pm                                 |    3 +-
 lib/RT/Test.pm                                     |    2 +-
 lib/RT/User_Overlay.pm                             |   28 ++++-
 sbin/rt-email-dashboards.in                        |    2 +-
 share/html/Admin/Elements/ObjectCustomFields       |   96 ---------------
 share/html/Admin/Elements/SelectCustomFieldType    |    2 +-
 share/html/Admin/Elements/SelectNewGroupMembers    |    7 +-
 share/html/Admin/Elements/ShowKeyInfo              |   10 +-
 share/html/Admin/Global/Theme.html                 |   68 +++++------
 share/html/Admin/Global/index.html                 |   36 +------
 share/html/Admin/Groups/CustomFields.html          |   48 --------
 share/html/Admin/Groups/index.html                 |    8 --
 share/html/Admin/Queues/Modify.html                |   20 +++-
 share/html/Admin/Tools/Queries.html                |   26 +++-
 share/html/Admin/Tools/index.html                  |   22 +---
 share/html/Admin/Users/GnuPG.html                  |    6 +-
 share/html/Admin/Users/index.html                  |    8 +-
 .../html/Dashboards/Elements/DashboardsForObjects  |   79 ------------
 share/html/Dashboards/Elements/ListOfDashboards    |   21 +++-
 share/html/Dashboards/Queries.html                 |    4 +-
 share/html/Download/Tabular/dhandler               |   76 ------------
 share/html/Elements/CollectionList                 |    3 +-
 share/html/Elements/Header                         |    2 +-
 share/html/Elements/QueueSummaryByLifecycle        |   35 +++---
 share/html/Elements/Tabs                           |  128 +++++++++++++-------
 share/html/NoAuth/css/aileron/InHeader             |    2 +-
 share/html/NoAuth/css/aileron/nav.css              |    4 +
 share/html/NoAuth/css/base/theme-editor.css        |    2 +-
 share/html/NoAuth/css/web2/InHeader                |    7 +-
 share/html/NoAuth/css/web2/nav.css                 |    4 +
 share/html/NoAuth/js/jquery.supposition.js         |   83 +++++++++++++
 share/html/Search/Results.html                     |    1 +
 share/html/Ticket/Display.html                     |    2 +-
 share/html/Ticket/Forward.html                     |    2 +-
 share/html/Ticket/ModifyAll.html                   |    4 +-
 share/html/Tools/Reports/index.html                |    2 +-
 share/html/Tools/index.html                        |   44 +-------
 share/html/m/ticket/create                         |    2 +-
 share/html/m/ticket/reply                          |    2 +-
 share/html/m/ticket/show                           |    4 +-
 t/api/cf_rights.t                                  |   51 ++++++++
 t/api/emailparser.t                                |   20 +++-
 t/api/groups.t                                     |   75 +++++++++++-
 t/web/dashboards-groups.t                          |    4 +-
 t/web/rights1.t                                    |    2 +-
 t/web/walk.t                                       |    8 +-
 67 files changed, 764 insertions(+), 697 deletions(-)
 delete mode 100644 share/html/Admin/Elements/ObjectCustomFields
 delete mode 100644 share/html/Admin/Groups/CustomFields.html
 delete mode 100644 share/html/Dashboards/Elements/DashboardsForObjects
 delete mode 100644 share/html/Download/Tabular/dhandler
 create mode 100644 share/html/NoAuth/js/jquery.supposition.js
 create mode 100644 t/api/cf_rights.t

- Log -----------------------------------------------------------------
commit 99a2f715046cbfd79c9e725f78a722412a846279
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Dec 13 15:16:56 2010 -0500

    Move Admin/Global/index.html to the new listing style

diff --git a/share/html/Admin/Global/index.html b/share/html/Admin/Global/index.html
index f7667cf..186d99d 100755
--- a/share/html/Admin/Global/index.html
+++ b/share/html/Admin/Global/index.html
@@ -47,38 +47,4 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Admin/Elements/Header, Title => loc('Admin/Global configuration') &>
 <& /Elements/Tabs &>
-    <& /Elements/ListMenu, items => $items &>
-<%INIT>
-  my $items = {
-                
-               A => { title => loc('Scrips'),
-                           text => loc('Modify scrips which apply to all queues'),
-                           path => '/Admin/Global/Scrips.html',
-                         },
-               B => { title => loc('Templates'),
-                        text => loc('Edit system templates'),
-                        path => '/Admin/Global/Templates.html',
-                      },
-              
-                F => { title => loc('Custom Fields'),
-                text => loc('Modify global custom fields'),
-                        path => '/Admin/Global/CustomFields/index.html',
-                        },
-
-                G => { title => loc('Group Rights'),
-                                text => loc('Modify global group rights'),
-                                path => '/Admin/Global/GroupRights.html',
-                      },
-                H => { title => loc('User Rights'),
-                                text => loc('Modify global user rights'),
-                                path => '/Admin/Global/UserRights.html',
-                      },
-                I => { title => loc('RT at a glance'),
-                                text => loc('Modify the default "RT at a glance" view'),
-                                path => '/Admin/Global/MyRT.html',
-                      },
-                J => { title => loc('Theme'),
-                                path => '/Admin/Global/Theme.html',
-                      },
-};
-</%INIT>
+<& /Elements/ListMenu, menu => Menu()->child('tools')->child('config')->child('global') &>
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index d1e55e4..1043fc4 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -134,10 +134,10 @@ if ( $request_path !~ qr{^/SelfService/} ) {
 
         my $admin_global = $admin->child( global => title => loc('Global'), path   => '/Admin/Global/', description => loc('Manage properties and configuration which apply to all queues') );
 
-        my $scrips = $admin_global->child( scrips => title => loc('Scrips'), path => '/Admin/Global/Scrips.html', );
+        my $scrips = $admin_global->child( scrips => title => loc('Scrips'), path => '/Admin/Global/Scrips.html', description => loc('Modify scrips which apply to all queues') );
         $scrips->child( select => title => loc('Select'), path => "/Admin/Global/Scrips.html" );
         $scrips->child( create => title => loc('Create'), path => "/Admin/Global/Scrip.html?Create=1" );
-        my $templates = $admin_global->child( loc('Templates'), path => '/Admin/Global/Templates.html', );
+        my $templates = $admin_global->child( loc('Templates'), path => '/Admin/Global/Templates.html', description => loc('Edit system templates') );
         $templates->child( select => title => loc('Select'), path => "/Admin/Global/Templates.html" );
         $templates->child( create => title => loc('Create'), path => "/Admin/Global/Template.html?Create=1" );
 
@@ -148,7 +148,9 @@ if ( $request_path !~ qr{^/SelfService/} ) {
 #            $workflows->child( loc('Mappings')     => path => "/Admin/Global/Workflows/Mappings.html" );
 #        }
 
-        my $cfadmin = $admin_global->child( 'custom-fields' => title => loc('Custom Fields'), path => '/Admin/Global/CustomFields/index.html', );
+        my $cfadmin = $admin_global->child( 'custom-fields' => title => loc('Custom Fields'),
+                                            path => '/Admin/Global/CustomFields/index.html',
+                                            description => loc('Modify global custom fields') );
         {
             $cfadmin->child( users => title => loc('Users') => text => loc('Select custom fields for all users'),
                              path => '/Admin/Global/CustomFields/Users.html');
@@ -168,10 +170,14 @@ if ( $request_path !~ qr{^/SelfService/} ) {
 
         }
 
-        $admin_global->child( 'group-rights' => title => loc('Group Rights'), path => '/Admin/Global/GroupRights.html', );
-        $admin_global->child( 'user-rights' => title => loc('User Rights'), path => '/Admin/Global/UserRights.html', );
-        $admin_global->child( 'my-rt' => title => loc('RT at a glance'), path => '/Admin/Global/MyRT.html', );
-        $admin_global->child( theme => title => loc('Theme'), path => '/Admin/Global/Theme.html', );
+        $admin_global->child( 'group-rights' => title => loc('Group Rights'), path => '/Admin/Global/GroupRights.html',
+                              description => loc('Modify global group rights') );
+        $admin_global->child( 'user-rights' => title => loc('User Rights'), path => '/Admin/Global/UserRights.html',
+                              description => loc('Modify global user rights') );
+        $admin_global->child( 'my-rt' => title => loc('RT at a glance'), path => '/Admin/Global/MyRT.html',
+                              description => loc('Modify the default "RT at a glance" view') );
+        $admin_global->child( theme => title => loc('Theme'), path => '/Admin/Global/Theme.html',
+                              description => loc('Customize the look of your RT') );
 
         my $admin_tools = $admin->child( tools => title => loc('Tools'), path => '/Admin/Tools/', description => loc('Use other RT administrative tools') );
         $admin_tools->child( configuration => title => loc('System Configuration'), path => '/Admin/Tools/Configuration.html', );

commit 336a0a1f6585b87663ab06b8adb2c1decc965c7e
Merge: 99a2f71 94b86bc
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Dec 13 15:48:38 2010 -0500

    Merge commit 3.9-trunk into 3.9-menu_index_page


commit 5d740536d2d576788a58a7132cceea9b762b84ef
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Dec 13 16:36:31 2010 -0500

    convert Admin/Tools/index.html

diff --git a/share/html/Admin/Tools/index.html b/share/html/Admin/Tools/index.html
index 8b696b6..18e30f7 100644
--- a/share/html/Admin/Tools/index.html
+++ b/share/html/Admin/Tools/index.html
@@ -45,24 +45,6 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-<& /Admin/Elements/Header, Title => $title &>
+<& /Admin/Elements/Header, Title => loc('System Tools') &>
 <& /Elements/Tabs &>
-<& /Elements/ListMenu, items => $tabs &>
-<%init>
-my $title = loc('System Tools');
-
-my $tabs = {
-        A => { title => loc('System Configuration'),
-               path => '/Admin/Tools/Configuration.html',
-               text => loc('Detailed information about your RT setup'),
-        },
-        B => { title => loc('SQL Queries'),
-               path => '/Admin/Tools/Queries.html',
-               text => loc('Browse the SQL queries made in this process'),
-        },
-        E => { title => loc('Shredder'),
-               path  => '/Admin/Tools/Shredder/',
-               text  => loc('Permanently wipeout data from RT'),
-        },
-};
-</%init>
+<& /Elements/ListMenu, menu => Menu()->child('tools')->child('config')->child('tools') &>
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 1f55d3c..1e11116 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -180,9 +180,12 @@ if ( $request_path !~ qr{^/SelfService/} ) {
                               description => loc('Customize the look of your RT') );
 
         my $admin_tools = $admin->child( tools => title => loc('Tools'), path => '/Admin/Tools/', description => loc('Use other RT administrative tools') );
-        $admin_tools->child( configuration => title => loc('System Configuration'), path => '/Admin/Tools/Configuration.html', );
-        $admin_tools->child( 'sql-queries' => title => loc('SQL Queries'), path => '/Admin/Tools/Queries.html', );
-        $admin_tools->child( shredder => title => loc('Shredder'), path => '/Admin/Tools/Shredder', );
+        $admin_tools->child( configuration => title => loc('System Configuration'), path => '/Admin/Tools/Configuration.html',
+                             description => loc('Detailed information about your RT setup') );
+        $admin_tools->child( 'sql-queries' => title => loc('SQL Queries'), path => '/Admin/Tools/Queries.html',
+                             description => loc('Browse the SQL queries made in this process') );
+        $admin_tools->child( shredder => title => loc('Shredder'), path => '/Admin/Tools/Shredder',
+                             description => loc('Permanently wipeout data from RT'));
     }
 
     my $about_me = Menu->child( 'preferences' => title =>

commit e29669269ce1ae92cf828c97e368036cb4a326d3
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Dec 13 16:56:11 2010 -0500

    Fix Tools/index.html and Tools/Reports/index.html

diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 1e11116..2d82db7 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -86,27 +86,34 @@ if ( $request_path !~ qr{^/SelfService/} ) {
     $tickets->child( new => title => loc('New Search') => path => "/Search/Build.html?NewQuery=1" );
 
     my $tools = Menu->child(  tools => title => loc('Tools'), path => '/Tools/index.html' );
-    my $dashes = $tools->child( dashboards => title => loc('Dashboards'), path => '/Dashboards/index.html', sort_order => 2 );
-
+    my $dashes = $tools->child( dashboards => title => loc('Dashboards'), path => '/Dashboards/index.html', sort_order => 2,
+                                description => loc('Named, shared collection of portlets') );
     $dashes->child( select => title => loc('Select'), path => "/Dashboards/index.html" );
     my $dashboard = RT::Dashboard->new( $session{CurrentUser} );
     if ( $dashboard->CurrentUserCanCreateAny ) {
         $dashes->child( loc('Create') => path => "/Dashboards/Modify.html?Create=1" );
     }
 
-    my $reports = $tools->child( reports => title => loc('Reports'), path => '/Tools/Reports/index.html', sort_order => 4 );
-    $reports->child( loc('Resolved by owner'), path => '/Tools/Reports/ResolvedByOwner.html', );
-    $reports->child( loc('Resolved in date range'), path => '/Tools/Reports/ResolvedByDates.html', );
-    $reports->child( loc('Created in a date range'), path => '/Tools/Reports/CreatedByDates.html', );
+    my $reports = $tools->child( reports => title => loc('Reports'), path => '/Tools/Reports/index.html', sort_order => 4,
+                                 description => loc('Various RT reports') );
+    $reports->child( loc('Resolved by owner'), path => '/Tools/Reports/ResolvedByOwner.html',
+        description => loc('Examine tickets resolved in a queue, grouped by owner'), );
+    $reports->child( loc('Resolved in date range'), path => '/Tools/Reports/ResolvedByDates.html',
+        description => loc('Examine tickets resolved in a queue between two dates'), );
+    $reports->child( loc('Created in a date range'), path => '/Tools/Reports/CreatedByDates.html',
+        description => loc('Examine tickets created in a queue between two dates'), );
 
-    $tools->child( my_day => title => loc('My Day'), path   => '/Tools/MyDay.html', sort_order => 5 );
+    $tools->child( my_day => title => loc('My Day'), path   => '/Tools/MyDay.html', sort_order => 5,
+                   description => loc('Easy updating of your open tickets') );
 
-    $tools->child( offline => title => loc('Offline'), path    => '/Tools/Offline.html', sort_order => 10 );
+    $tools->child( offline => title => loc('Offline'), path    => '/Tools/Offline.html', sort_order => 10,
+                   description => loc('Create tickets offline') );
     $tools->child( watching => title => loc('Watching Queues'), path => '/Tools/Watching.html', sort_order => 15 );
 
     if ( $session{'CurrentUser'}->HasRight( Right => 'ShowApprovalsTab', Object => $RT::System ) )
     {
-        $tools->child( approval => title => loc('Approval'), path     => '/Approvals/', sort_order=>3 );
+        $tools->child( approval => title => loc('Approval'), path     => '/Approvals/', sort_order=> 3,
+                       description => loc('My Approvals') );
     }
 
     if ( $session{'CurrentUser'}->HasRight( Right => 'ShowConfigTab', Object => $RT::System ) )
diff --git a/share/html/Tools/Reports/index.html b/share/html/Tools/Reports/index.html
index c219a6f..4075263 100644
--- a/share/html/Tools/Reports/index.html
+++ b/share/html/Tools/Reports/index.html
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Elements/Header, Title => loc('Reports') &>
 <& /Elements/Tabs &>
-<& /Elements/ListMenu, items => $tabs &>
+<& /Elements/ListMenu, menu => Menu()->child('tools')->child('reports') &>
 
 % $m->callback;
 
diff --git a/share/html/Tools/index.html b/share/html/Tools/index.html
index 4d8c480..e2f0eaf 100644
--- a/share/html/Tools/index.html
+++ b/share/html/Tools/index.html
@@ -47,46 +47,4 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Elements/Header, Title => loc("Tools") &>
 <& /Elements/Tabs &>
-<& /Elements/ListMenu, items => $tabs &>
-
-<%init>
-
-my $tabs = {
-    B => {
-        title       => loc('Offline'),
-        path        => '/Tools/Offline.html',
-        description => loc('Create tickets offline'),
-    },
-    C => {
-        title       => loc('Reports'),
-        path        => '/Tools/Reports/index.html',
-        description => loc('Various RT reports'),
-    },
-    D => {
-        title       => loc('My Day'),
-        path        => '/Tools/MyDay.html',
-        description => loc('Easy updating of your open tickets'),
-    },
-    E => {
-        title       => loc('Watching Queues'),
-        path        => '/Tools/Watching.html',
-        description => loc('A list of queues you watch'),
-    },
-};
-
-my $can_see_dashboards = $session{CurrentUser}->HasRight(Right => 'SubscribeDashboard', Object => $RT::System)
-                       || RT::Dashboard->new($session{CurrentUser})->ObjectsForLoading
-                       || RT::Dashboard->new($session{CurrentUser})->ObjectsForCreating
-                       || RT::Dashboard->new($session{CurrentUser})->ObjectsForModifying;
-
-if ($can_see_dashboards) {
-    $tabs->{A} = {
-        title       => loc('Dashboards'),
-        path        => '/Dashboards/index.html',
-        description => loc('Named, shared collection of portlets'),
-    };
-}
-
-$m->callback( %ARGS, tabs => $tabs );
-
-</%init>
+<& /Elements/ListMenu, menu => Menu()->child('tools') &>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list