From a72b4c68711eb5f7ff28ed40ce0df74d7b058a17 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 5 Mar 2018 12:57:54 -0500 Subject: [PATCH] remove irrelevant files --- views/layouts/mailer.html.erb | 5 --- views/layouts/mailer.text.erb | 1 - views/users/confirmations/new.html.erb | 12 ------- .../mailer/confirmation_instructions.html.erb | 5 --- .../reset_password_instructions.html.erb | 11 ------- .../users/mailer/unlock_instructions.html.erb | 7 ---- views/users/registrations/edit.html.erb | 29 ----------------- views/users/registrations/new.html.erb | 29 ----------------- views/users/sessions/new.html.erb | 32 ------------------- views/users/shared/_links.erb | 25 --------------- views/users/unlocks/new.html.erb | 12 ------- 11 files changed, 168 deletions(-) delete mode 100644 views/layouts/mailer.html.erb delete mode 100644 views/layouts/mailer.text.erb delete mode 100644 views/users/confirmations/new.html.erb delete mode 100644 views/users/mailer/confirmation_instructions.html.erb delete mode 100644 views/users/mailer/reset_password_instructions.html.erb delete mode 100644 views/users/mailer/unlock_instructions.html.erb delete mode 100644 views/users/registrations/edit.html.erb delete mode 100644 views/users/registrations/new.html.erb delete mode 100644 views/users/sessions/new.html.erb delete mode 100644 views/users/shared/_links.erb delete mode 100644 views/users/unlocks/new.html.erb diff --git a/views/layouts/mailer.html.erb b/views/layouts/mailer.html.erb deleted file mode 100644 index ffc26ec4..00000000 --- a/views/layouts/mailer.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - - - { yield } - - diff --git a/views/layouts/mailer.text.erb b/views/layouts/mailer.text.erb deleted file mode 100644 index 112e5726..00000000 --- a/views/layouts/mailer.text.erb +++ /dev/null @@ -1 +0,0 @@ -{ yield } diff --git a/views/users/confirmations/new.html.erb b/views/users/confirmations/new.html.erb deleted file mode 100644 index f3cb359e..00000000 --- a/views/users/confirmations/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Resend confirmation instructions

- -{ form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| } - { devise_error_messages! } - -
{ f.label :email }
- { f.email_field :email, :autofocus => true }
- -
{ f.submit "Resend confirmation instructions" }
-{ end } - -{ render "devise/shared/links" } diff --git a/views/users/mailer/confirmation_instructions.html.erb b/views/users/mailer/confirmation_instructions.html.erb deleted file mode 100644 index 0d4ad774..00000000 --- a/views/users/mailer/confirmation_instructions.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

Welcome { @email }!

- -

You can confirm your account email through the link below:

- -

{ link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) }

diff --git a/views/users/mailer/reset_password_instructions.html.erb b/views/users/mailer/reset_password_instructions.html.erb deleted file mode 100644 index 104a0456..00000000 --- a/views/users/mailer/reset_password_instructions.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

Hey there Metamapper with email { @resource.email }!

- -

Please create a new password. Your password needs to contain a capital letter, a number, an emoji, 7 elements from the Periodic Table, and a plot containing a protagonist with some character development and a surprise twist ending.

- -

Just kidding. But it does have to be between 8 and 40 characters.

- -

Change your password using the link below.

- -

{ link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @token) }

- -

If you didn't request this, click your heels three times and pretend nothing ever happened.

diff --git a/views/users/mailer/unlock_instructions.html.erb b/views/users/mailer/unlock_instructions.html.erb deleted file mode 100644 index 56767d97..00000000 --- a/views/users/mailer/unlock_instructions.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Hello { @resource.email }!

- -

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

- -

Click the link below to unlock your account:

- -

{ link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) }

diff --git a/views/users/registrations/edit.html.erb b/views/users/registrations/edit.html.erb deleted file mode 100644 index d1258b49..00000000 --- a/views/users/registrations/edit.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Edit { resource_name.to_s.humanize }

- -{ form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| } - { devise_error_messages! } - -
{ f.label :email }
- { f.email_field :email, :autofocus => true }
- - { if devise_mapping.confirmable? && resource.pending_reconfirmation? } -
Currently waiting confirmation for: { resource.unconfirmed_email }
- { end } - -
{ f.label :password } (leave blank if you don't want to change it)
- { f.password_field :password, :autocomplete => "off" }
- -
{ f.label :password_confirmation }
- { f.password_field :password_confirmation }
- -
{ f.label :current_password } (we need your current password to confirm your changes)
- { f.password_field :current_password }
- -
{ f.submit "Update" }
-{ end } - -

Cancel my account

- -

Unhappy? { button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete }.

- -{ link_to "Back", :back } diff --git a/views/users/registrations/new.html.erb b/views/users/registrations/new.html.erb deleted file mode 100644 index 750c325b..00000000 --- a/views/users/registrations/new.html.erb +++ /dev/null @@ -1,29 +0,0 @@ - - - -
-{ form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :post, :className => "new_user centerGreyForm" }) do |f| } - -

Sign Up

- -
{ f.label :name, "Name:", :className => "firstFieldText" } - { f.text_field :name, :autofocus => true }
- -
{ f.label :email, "Email:", :className => "fieldText" } - { f.email_field :email }
- -
{ f.label :password, "Password:", :className => "fieldText" } - { f.password_field :password }
- -
{ f.label :password_confirmation, "Password Confirmation:", :className => "fieldText" } - { f.password_field :password_confirmation }
- -
{ f.label "Access Code:", :className => "fieldText" } - { f.text_field :joinedwithcode, :value => params[:code] }
- -
{ f.submit "Sign up!" }
- -

Don't have an access code?
Request an Invite
-{ end } -
- diff --git a/views/users/sessions/new.html.erb b/views/users/sessions/new.html.erb deleted file mode 100644 index 875f1afe..00000000 --- a/views/users/sessions/new.html.erb +++ /dev/null @@ -1,32 +0,0 @@ - - - -
-{ form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :method => :post, :className => "centerGreyForm login" }) do |f| } -

SIGN IN

- -
-
- { f.email_field :email, :autofocus => true, :placeholder => "Email" }
- -
- { f.password_field :password, :placeholder => "Password" }
- -
{ f.submit "Sign in" }
- - { if devise_mapping.rememberable? -} -
- { f.label :remember_me, "Stay signed in" } - { f.check_box :remember_me } -
-
- { end -} -
-
- {- if devise_mapping.recoverable? && controller_name != 'passwords' } - { link_to "Forgot password?", new_password_path(resource_name) } - { end -} -
-{ end } -
- diff --git a/views/users/shared/_links.erb b/views/users/shared/_links.erb deleted file mode 100644 index d442d67f..00000000 --- a/views/users/shared/_links.erb +++ /dev/null @@ -1,25 +0,0 @@ -{- if controller_name != 'sessions' } - { link_to "Sign in", new_session_path(resource_name) }
-{ end -} - -{- if devise_mapping.registerable? && controller_name != 'registrations' } - { link_to "Sign up", new_user_path(resource_name) }
-{ end -} - -{- if devise_mapping.recoverable? && controller_name != 'passwords' } - { link_to "Forgot your password?", new_password_path(resource_name) }
-{ end -} - -{- if devise_mapping.confirmable? && controller_name != 'confirmations' } - { link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) }
-{ end -} - -{- if devise_mapping.lockable? && resource_className.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' } - { link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) }
-{ end -} - -{- if devise_mapping.omniauthable? } - {- resource_className.omniauth_providers.each do |provider| } - { link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) }
- { end -} -{ end -} \ No newline at end of file diff --git a/views/users/unlocks/new.html.erb b/views/users/unlocks/new.html.erb deleted file mode 100644 index 5f5e2e4d..00000000 --- a/views/users/unlocks/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Resend unlock instructions

- -{ form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| } - { devise_error_messages! } - -
{ f.label :email }
- { f.email_field :email, :autofocus => true }
- -
{ f.submit "Resend unlock instructions" }
-{ end } - -{ render "devise/shared/links" }