[Rt-commit] rt branch, admin_ui, updated. 0cde19bad639b8ec228e227ec6fe7d95cf8ce4d2

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Dec 14 01:06:24 EST 2009


The branch, admin_ui has been updated
       via  0cde19bad639b8ec228e227ec6fe7d95cf8ce4d2 (commit)
      from  cbcddc3fb601cff98b746e877d2d64de10fc71b3 (commit)

Summary of changes:
 lib/RT/View/Admin.pm |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 0cde19bad639b8ec228e227ec6fe7d95cf8ce4d2
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Dec 14 14:06:02 2009 +0800

    /admin/index.html page

diff --git a/lib/RT/View/Admin.pm b/lib/RT/View/Admin.pm
index beb1f45..47a07c7 100644
--- a/lib/RT/View/Admin.pm
+++ b/lib/RT/View/Admin.pm
@@ -69,5 +69,63 @@ alias RT::View::Admin::Rules under 'rules/';
 require RT::View::Admin::Global;
 alias RT::View::Admin::Global under 'global/';
 
+template 'index.html' => page { title => _('RT Administration') } content {
+    my $items = {
+        A => {
+            title       => _('Users'),
+            path        => '/admin/users',
+            description => _('Manage users and passwords'),
+        },
+        B => {
+            title       => _('Groups'),
+            path        => '/admin/groups',
+            description => _('Manage groups and group membership'),
+        },
+        C => {
+            title       => _('Queues'),
+            path        => '/admin/queues',
+            description => _('Manage queues and queue-specific properties'),
+        },
+        D => {
+            'title'     => _('Custom Fields'),
+            description => _('Manage custom fields and custom field values'),
+            path        => '/admin/custom_fields',
+        },
+        E => {
+            'title'     => _('Global'),
+            path        => '/admin/global',
+            description => _(
+                'Manage properties and configuration which apply to all queues'
+            ),
+        },
+        F => {
+            'title'     => _('Tools'),
+            path        => '/admin/tools',
+            description => _('Use other RT administrative tools')
+        },
+    };
+
+    ul {
+        attr { class => 'list-menu' };
+        foreach my $key ( sort keys %$items ) {
+            li {
+                span {
+                    attr { class => 'menu-item' };
+                    a {
+                        attr { href => RT->config->get('web_path')
+                              . $items->{$key}->{'path'} };
+                        $items->{$key}->{'title'};
+                    }
+                }
+                span {
+                    attr { class => 'description' }
+                      $items->{$key}->{description}
+                }
+
+            }
+        }
+    };
+}
+
 1;
 

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


More information about the Rt-commit mailing list