[Jifty-commit] r3542 - in jifty/trunk: lib/Jifty/Plugin/Authentication/Password

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jun 21 00:06:35 EDT 2007


Author: trs
Date: Thu Jun 21 00:06:09 2007
New Revision: 3542

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm

Log:
 r24784 at zot:  tom | 2007-06-21 00:03:42 -0400
 Convert to using the form of declaring titles that works when using the mason wrapper with TD


Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm	Thu Jun 21 00:06:09 2007
@@ -25,8 +25,7 @@
 }
 
 
-template 'signup' => page {
-    title is _('Sign up');
+template 'signup' => page { title => _('Sign up') } content {
     my ( $action, $next ) = get(qw(action next));
     Jifty->web->form->start( call => $next );
     render_param( $action => 'name' , focus => 1);
@@ -35,8 +34,7 @@
     Jifty->web->form->end();
 };
 
-template login => page {
-    { title is _('Login!') };
+template login => page { title => _('Login!') } content {
     show('login_widget');
 };
 
@@ -69,9 +67,8 @@
     }
 };
 
-template 'let/reset_lost_password' => page {
+template 'let/reset_lost_password' => page { title => 'Reset lost password' } content {
     my ( $next ) = get(qw(next));
-    title is 'Reset lost password' ;
     my $action = Jifty->web->new_action( class => 'ResetLostPassword' );
 
     Jifty->web->form->start( call => $next );
@@ -85,14 +82,13 @@
     redirect("/");
 };
 
-template 'lost_password' => page {
+template 'lost_password' => page { title => 'Send a link to reset your password' } content {
     my ( $next ) = get(qw(next));
     my $action = Jifty->web->new_action(
         moniker => 'password_reminder',
         class   => 'SendPasswordReminder',
     );
 
-    title is _('Send a link to reset your password');
     outs( _(  "You lost your password. A link to reset it will be sent to the following email address:"));
     my $focused = 0;
     Jifty->web->form->start( call => $next );
@@ -102,9 +98,8 @@
 
 };
 
-template 'passwordreminder' => page {
+template 'passwordreminder' => page { title => 'Send a password reminder' } content {
     my $next = get('next');
-     title is  _('Send a password reminder');
     my $action = Jifty->web->new_action(
         moniker => 'password_reminder',
         class   => 'SendPasswordReminder',
@@ -118,8 +113,7 @@
     Jifty->web->form->end();
 };
 
-template 'resend_confirmation' => page {
-    attr { title => "Resend Confirmation Email" };
+template 'resend_confirmation' => page { title => 'Resend Confirmation Email' } content {
     my $resend = Jifty->web->new_action(
         class   => 'ResendConfirmation',
         moniker => 'resendconf'


More information about the Jifty-commit mailing list