[Jifty-commit] jifty branch, master, updated. 1.10518-17-geea889a

Jifty commits jifty-commit at lists.jifty.org
Wed Jun 1 13:18:45 EDT 2011


The branch, master has been updated
       via  eea889ac72061dec408935285f5bc2e8691df70a (commit)
      from  c8c4fd27238e2f66a64e04e066c621b8ec37e045 (commit)

Summary of changes:
 lib/Jifty/Plugin/Authentication/Password/View.pm |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit eea889ac72061dec408935285f5bc2e8691df70a
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jun 1 13:18:21 2011 -0400

    Make the signup and login widgets a bit more flexible for apps to use

diff --git a/lib/Jifty/Plugin/Authentication/Password/View.pm b/lib/Jifty/Plugin/Authentication/Password/View.pm
index 9e1a611..60ca2cc 100644
--- a/lib/Jifty/Plugin/Authentication/Password/View.pm
+++ b/lib/Jifty/Plugin/Authentication/Password/View.pm
@@ -24,7 +24,13 @@ Displays a sign-up form.
 =cut
 
 template 'signup' => page { title => _('Sign up') } content {
+    show 'signup_widget';
+};
+
+template 'signup_widget' => sub {
     my ( $action, $next ) = get(qw(action next));
+    $action ||= new_action( class => 'Signup' );
+    $next ||= Jifty::Continuation->new( request => Jifty::Request->new(path => "/") );
     Jifty->web->form->start( call => $next );
     render_param( $action => 'name' , focus => 1);
     render_param( $action => $_ ) for ( grep {$_ ne 'name'} $action->argument_names );
@@ -59,7 +65,7 @@ template login_widget => sub {
     $next ||= Jifty::Continuation->new(
         request => Jifty::Request->new( path => "/" ) );
     unless ( Jifty->web->current_user->id ) {
-        p {
+        p {{ class is 'signup-pointer' };
             outs( _( "No account yet? It's quick and easy. " ));
             tangent( label => _("Sign up for an account!"), url   => '/signup');
         };

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


More information about the Jifty-commit mailing list