[Bps-public-commit] App-Changeloggr branch, master, updated. 99f74fe7c73d2f7a6e7f8ca0e1fc983d364542ab

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 29 18:56:24 EDT 2009


The branch, master has been updated
       via  99f74fe7c73d2f7a6e7f8ca0e1fc983d364542ab (commit)
      from  a44c820ce850487963bd4a76e8e8629391a1f673 (commit)

Summary of changes:
 lib/App/Changeloggr/View/Account.pm |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 99f74fe7c73d2f7a6e7f8ca0e1fc983d364542ab
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 29 18:56:16 2009 -0400

    Add update-user form

diff --git a/lib/App/Changeloggr/View/Account.pm b/lib/App/Changeloggr/View/Account.pm
index 6bae928..2913736 100644
--- a/lib/App/Changeloggr/View/Account.pm
+++ b/lib/App/Changeloggr/View/Account.pm
@@ -5,6 +5,15 @@ use strict;
 use warnings;
 
 template '/index.html' => page {
+    my $user = Jifty->web->current_user->user_object;
+    my $update = $user->as_update_action;
+
+    render_action($update);
+
+    form_submit(
+        label   => 'Update',
+        onclick => { submit => $update },
+    );
 };
 
 template '/votes' => page {

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



More information about the Bps-public-commit mailing list