[Rt-commit] rt branch, admin_ui, updated. 503be443805ba43ef039b98f4149d3717c2a0fd8

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Jan 20 23:21:08 EST 2010


The branch, admin_ui has been updated
       via  503be443805ba43ef039b98f4149d3717c2a0fd8 (commit)
      from  15d059a9105cc94625eff3861c017008b1d307b4 (commit)

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

- Log -----------------------------------------------------------------
commit 503be443805ba43ef039b98f4149d3717c2a0fd8
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jan 21 12:20:57 2010 +0800

    /prefs/my_rt view

diff --git a/lib/RT/View/Prefs.pm b/lib/RT/View/Prefs.pm
index 45c7622..605be59 100644
--- a/lib/RT/View/Prefs.pm
+++ b/lib/RT/View/Prefs.pm
@@ -130,5 +130,22 @@ template 'other' => page { title => _('Customize Others') } content {
     };
 }
 
+template 'my_rt' => page { title => _('Customize my RT') } content {
+    my $self = shift;
+    my $moniker = 'prefs_config_my_rt';
+    my $action = new_action(
+        class   => 'ConfigMyRT',
+        moniker => $moniker,
+    );
+
+    $action->record( Jifty->web->current_user->user_object );
+
+    with( name => $moniker ), form {
+        render_action($action);
+        form_submit( label => _('Save') );
+    };
+
+};
+
 1;
 

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


More information about the Rt-commit mailing list