mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-05 09:04:29 +02:00
Merge pull request #29 from Evolix/text-mailers-devise
Add plain text templates for Devise mailers
This commit is contained in:
commit
86e5b188a7
|
@ -0,0 +1,4 @@
|
|||
<%= t('.greeting', recipient: @email) %>
|
||||
|
||||
<%= t('.instruction') %>
|
||||
<%= confirmation_url(@resource, confirmation_token: @token) %>
|
7
app/views/devise/mailer/email_changed.text.erb
Normal file
7
app/views/devise/mailer/email_changed.text.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<%= t('.greeting', recipient: @email) %>
|
||||
|
||||
<% if @resource.try(:unconfirmed_email?) %>
|
||||
<%= t('.message', email: @resource.unconfirmed_email) %>
|
||||
<% else %>
|
||||
<%= t('.message', email: @resource.email) %>
|
||||
<% end %>
|
3
app/views/devise/mailer/password_change.text.erb
Normal file
3
app/views/devise/mailer/password_change.text.erb
Normal file
|
@ -0,0 +1,3 @@
|
|||
<%= t('.greeting', recipient: @resource.email) %>
|
||||
|
||||
<%= t('.message') %>
|
|
@ -0,0 +1,8 @@
|
|||
<%= t('.greeting', recipient: @resource.email) %>
|
||||
|
||||
<%= t('.instruction') %>
|
||||
|
||||
<%= edit_password_url(@resource, reset_password_token: @token) %>
|
||||
|
||||
<%= t('.instruction_2') %>
|
||||
<%= t('.instruction_3') %>
|
7
app/views/devise/mailer/unlock_instructions.text.erb
Normal file
7
app/views/devise/mailer/unlock_instructions.text.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<%= t('.greeting', recipient: @resource.email) %>
|
||||
|
||||
<%= t('.message') %>
|
||||
|
||||
<%= t('.instruction') %>
|
||||
|
||||
<%= link_to t('.action'), unlock_url(@resource, unlock_token: @token) %>
|
Loading…
Reference in a new issue