diff --git a/app/views/devise/mailer/confirmation_instructions.haml b/app/views/devise/mailer/confirmation_instructions.html.haml similarity index 100% rename from app/views/devise/mailer/confirmation_instructions.haml rename to app/views/devise/mailer/confirmation_instructions.html.haml diff --git a/app/views/devise/mailer/confirmation_instructions.text.haml b/app/views/devise/mailer/confirmation_instructions.text.haml new file mode 100644 index 0000000..38e4c54 --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.text.haml @@ -0,0 +1,5 @@ += t('.greeting', recipient: @email) +\ += t('.instruction') +\ += confirmation_url(@resource, confirmation_token: @token) diff --git a/app/views/devise/mailer/email_changed.haml b/app/views/devise/mailer/email_changed.html.haml similarity index 100% rename from app/views/devise/mailer/email_changed.haml rename to app/views/devise/mailer/email_changed.html.haml diff --git a/app/views/devise/mailer/email_changed.text.haml b/app/views/devise/mailer/email_changed.text.haml new file mode 100644 index 0000000..e5216a5 --- /dev/null +++ b/app/views/devise/mailer/email_changed.text.haml @@ -0,0 +1,6 @@ += t('.greeting', recipient: @email) +\ +- if @resource.try(:unconfirmed_email?) + = t('.message', email: @resource.unconfirmed_email) +- else + = t('.message', email: @resource.email) diff --git a/app/views/devise/mailer/invitation_instructions.haml b/app/views/devise/mailer/invitation_instructions.html.haml similarity index 100% rename from app/views/devise/mailer/invitation_instructions.haml rename to app/views/devise/mailer/invitation_instructions.html.haml diff --git a/app/views/devise/mailer/password_change.haml b/app/views/devise/mailer/password_change.html.haml similarity index 100% rename from app/views/devise/mailer/password_change.haml rename to app/views/devise/mailer/password_change.html.haml diff --git a/app/views/devise/mailer/password_change.text.haml b/app/views/devise/mailer/password_change.text.haml new file mode 100644 index 0000000..fe4c1ea --- /dev/null +++ b/app/views/devise/mailer/password_change.text.haml @@ -0,0 +1,3 @@ += t('.greeting', recipient: @resource.email) +\ += t('.message') diff --git a/app/views/devise/mailer/reset_password_instructions.haml b/app/views/devise/mailer/reset_password_instructions.html.haml similarity index 100% rename from app/views/devise/mailer/reset_password_instructions.haml rename to app/views/devise/mailer/reset_password_instructions.html.haml diff --git a/app/views/devise/mailer/reset_password_instructions.text.haml b/app/views/devise/mailer/reset_password_instructions.text.haml new file mode 100644 index 0000000..3d0fe64 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.text.haml @@ -0,0 +1,9 @@ += t('.greeting', recipient: @resource.email) +\ += t('.instruction') +\ += edit_password_url(@resource, reset_password_token: @token) +\ += t('.instruction_2') +\ += t('.instruction_3') diff --git a/app/views/devise/mailer/unlock_instructions.haml b/app/views/devise/mailer/unlock_instructions.html.haml similarity index 100% rename from app/views/devise/mailer/unlock_instructions.haml rename to app/views/devise/mailer/unlock_instructions.html.haml diff --git a/app/views/devise/mailer/unlock_instructions.text.haml b/app/views/devise/mailer/unlock_instructions.text.haml new file mode 100644 index 0000000..cf06927 --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.text.haml @@ -0,0 +1,7 @@ += t('.greeting', recipient: @resource.email) +\ += t('.message') +\ += t('.instruction') +\ += unlock_url(@resource, unlock_token: @token) diff --git a/app/views/layouts/mailer.text.haml b/app/views/layouts/mailer.text.haml index 36d87bd..7edd2be 100644 --- a/app/views/layouts/mailer.text.haml +++ b/app/views/layouts/mailer.text.haml @@ -1,3 +1,4 @@ = yield - +\ += '-- ' = t('.signature')