From 2fcc7837878c339b130b16b71a20ec9832b99114 Mon Sep 17 00:00:00 2001 From: Dennis Schubert <software@dsx.cc> Date: Mon, 24 Oct 2011 22:50:25 +0200 Subject: [PATCH] Add mobile registration site to fix ugly 500 --- app/views/registrations/new.mobile.haml | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app/views/registrations/new.mobile.haml diff --git a/app/views/registrations/new.mobile.haml b/app/views/registrations/new.mobile.haml new file mode 100644 index 0000000000..17f0d5f5ad --- /dev/null +++ b/app/views/registrations/new.mobile.haml @@ -0,0 +1,40 @@ +-# Copyright (c) 2010-2011, Diaspora Inc. This file is +-# licensed under the Affero General Public License version 3 or later. See +-# the COPYRIGHT file. + += javascript_include_tag "validation" + +.stream + #login_form + .login-container + %h2 + = t('users.getting_started.welcome') + = form_for(resource, :as => resource_name, :html => {:class => 'new_user_form'}, :url => registration_path(resource_name), :validate => true) do |f| + .row + .row + = f.label :username, t('username') + .centered + = f.text_field :username + %span.host_uri + = "@#{AppConfig[:pod_uri].host}" + .row + .row + = f.label :email, t('email') + .centered + = f.email_field :email + .row + .row + = f.label :password, t('password') + .centered + = f.password_field :password + .row + .row + = f.label :password_confirmation, t('password_confirmation') + .centered + = f.password_field :password_confirmation + .row + = f.submit t('registrations.new.create_my_account'), :class => 'login-submit' + = link_to t('.sign_up'), new_user_session_path() + +%footer + -- GitLab