
sartak at bestpractical
Nov 3, 2009, 10:51 PM
Post #1 of 1
(76 views)
Permalink
|
|
rt branch, create-action, updated. b59cb1c79d03e21ba2b51286ce54021d70982b37
|
|
The branch, create-action has been updated via b59cb1c79d03e21ba2b51286ce54021d70982b37 (commit) from 949130538f55f9afc81f09b30e870858e965412c (commit) Summary of changes: lib/RT/View.pm | 3 +++ lib/RT/View/{Ticket.pm => SelfService.pm} | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) copy lib/RT/View/{Ticket.pm => SelfService.pm} (92%) - Log ----------------------------------------------------------------- commit b59cb1c79d03e21ba2b51286ce54021d70982b37 Author: Shawn M Moore <sartak[at]bestpractical.com> Date: Wed Nov 4 01:51:02 2009 -0500 Wire in View::SelfService::Create diff --git a/lib/RT/View.pm b/lib/RT/View.pm index 1087b66..24085e7 100644 --- a/lib/RT/View.pm +++ b/lib/RT/View.pm @@ -60,6 +60,9 @@ alias RT::View::Ticket under 'ticket/'; require RT::View::SetupWizard; alias RT::View::SetupWizard under '__jifty/admin/setupwizard'; +require RT::View::SelfService; +alias RT::View::SelfService under 'selfservice/'; + __PACKAGE__->use_mason_wrapper; template login_widget => sub { diff --git a/lib/RT/View.pm b/lib/RT/View/SelfService.pm similarity index 63% copy from lib/RT/View.pm copy to lib/RT/View/SelfService.pm index 1087b66..2a43b11 100644 --- a/lib/RT/View.pm +++ b/lib/RT/View/SelfService.pm @@ -48,43 +48,13 @@ use warnings; use strict; -package RT::View; +package RT::View::SelfService; use Jifty::View::Declare -base; -require RT::View::Admin; -alias RT::View::Admin under 'admin/'; - -require RT::View::Ticket; -alias RT::View::Ticket under 'ticket/'; - -require RT::View::SetupWizard; -alias RT::View::SetupWizard under '__jifty/admin/setupwizard'; - __PACKAGE__->use_mason_wrapper; -template login_widget => sub { - - my ( $action, $next ) = get( 'action', 'next' ); - $action ||= new_action( class => 'Login' ); - $next ||= Jifty::Continuation->new( - request => Jifty::Request->new( path => "/" ) ); - unless ( Jifty->web->current_user->id ) { - div { - attr { id => 'body', class => 'login-body' }; - div { - attr { id => 'login-box' }; - Jifty->web->form->start( call => $next ); - my $plugin = Jifty->find_plugin( - 'Jifty::Plugin::Authentication::Password' ); - render_param( $action, $plugin->{login_by}, focus => 1 ); - render_param( $action, $_ ) for (qw(password remember)); - form_return( label => _(q{Login}), submit => $action ); - Jifty->web->form->end(); - }; - }; - } else { - outs( _("You're already logged in.") ); - } -}; +require RT::View::SelfService::Create; +alias RT::View::SelfService::Create under '/'; 1; + ----------------------------------------------------------------------- _______________________________________________ Rt-commit mailing list Rt-commit[at]lists.bestpractical.com http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
|