[Rt-commit] rt branch, admin_ui, updated. a661ca06649536e2c350c03c3b4b2a5fdb087ac1
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Dec 17 22:15:27 EST 2009
The branch, admin_ui has been updated
via a661ca06649536e2c350c03c3b4b2a5fdb087ac1 (commit)
from 8c0de72089d40cd91f48d44baa63cc50dbc7a4a8 (commit)
Summary of changes:
lib/RT/View/Admin/Tools.pm | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit a661ca06649536e2c350c03c3b4b2a5fdb087ac1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Dec 18 11:15:00 2009 +0800
/admin/tools/index.html to list items
diff --git a/lib/RT/View/Admin/Tools.pm b/lib/RT/View/Admin/Tools.pm
index aef2703..108d818 100644
--- a/lib/RT/View/Admin/Tools.pm
+++ b/lib/RT/View/Admin/Tools.pm
@@ -51,6 +51,42 @@ use strict;
package RT::View::Admin::Tools;
use Jifty::View::Declare -base;
+template 'index.html' => page { title => _('Global Configuration') } content {
+ my $items = {
+ A => {
+ title => _('System Configuration'),
+ text => _('View system configuration'),
+ path => '/admin/tools/configuration',
+ },
+ B => {
+ title => _('Shredder'),
+ text => _('Shredder plugin'),
+ path => '/admin/tools/shredder',
+ },
+ };
+
+ 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}->{text}
+ }
+
+ }
+ }
+ };
+}
+
template 'configuration' => page { title => _('System Configuration') }
content {
h2 { _('loaded perl modules') };
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list