[Jifty-commit] r6036 - wifty/trunk/lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Sat Nov 29 22:12:33 EST 2008
Author: ruz
Date: Sat Nov 29 22:12:32 2008
New Revision: 6036
Modified:
wifty/trunk/lib/Wifty/View-not-ready-yet.pm
Log:
* we will not need these templates
Modified: wifty/trunk/lib/Wifty/View-not-ready-yet.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View-not-ready-yet.pm (original)
+++ wifty/trunk/lib/Wifty/View-not-ready-yet.pm Sat Nov 29 22:12:32 2008
@@ -307,58 +307,6 @@
};
-template login => sub {
- my ( $action, $next, ) = get(qw(action next));
- show(
- 'wrapper',
- { title => 'Login' },
- sub {
- if ( not current_user->id ) {
- div {{ id is 'login-box' }
- form {{ call is $next, name is "loginbox" }
- render_param($action => 'email');
- render_param($action => 'password');
- render_param($action => 'remember');
- form_submit(
- label => 'Login',
- submit => $action
- );
- };
- };
-
- p {
- tangent(
- label => q{Don't have an account?},
- url => '/signup'
- );
- };
-
- } else {
- p {
- "You're already logged in as "
- . current_user->user_object->name . "."
- . "If this isn't you, "
- . tangent(
- url => '/logout',
- label => 'click here'
- )
- . ".";
- }
- }
- }
- );
-};
-
-template logout => sub {
- show(
- 'wrapper',
- { title => "Logged out" },
- sub {
- p { _("Ok, you're now logged out. Have a good day.") };
- }
- );
-};
-
template no_such_page => sub {
my ( $page ) = get(qw(page));
show(
@@ -446,25 +394,6 @@
);
};
-template signup => sub {
- my ( $action, $next ) = get(qw(action next));
- show(
- 'wrapper',
- { title => 'Signup' },
- sub {
- p {q{Just a few bits of information are all that's needed.}};
- form {{ call is $next, name is "signupbox" }
- render_param($action => 'email');
- render_param($action => 'name');
- render_param($action => 'password');
- render_param($action => 'password_confirm');
- form_submit( label => 'Signup', submit => $action );
- };
- }
- );
-
-};
-
template view => sub {
my ( $page, $revision, $viewer ) = get(qw(page revision viewer));
show( 'page_nav', page => $page->name, rev => $revision->id );
@@ -602,18 +531,4 @@
};
};
-package Wifty::View::let;
-use Template::Declare::Tags;
-
-# /let/confirm_email
-
-template confirm_email => sub {
- Jifty->api->allow('ConfirmEmail');
- new_action(
- moniker => 'confirm_email',
- class => 'Wifty::Action::ConfirmEmail'
- )->run;
- redirect("/");
-};
-
1;
More information about the Jifty-commit
mailing list