21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-29 07:20:50 +02:00

Merge pull request #29 from Evolix/text-mailers-devise

Add plain text templates for Devise mailers
This commit is contained in:
Jérémy Lecour 2018-06-14 22:51:46 +02:00 committed by GitHub
commit 86e5b188a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<%= t('.greeting', recipient: @email) %>
<%= t('.instruction') %>
<%= confirmation_url(@resource, confirmation_token: @token) %>

View 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 %>

View file

@ -0,0 +1,3 @@
<%= t('.greeting', recipient: @resource.email) %>
<%= t('.message') %>

View file

@ -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') %>

View file

@ -0,0 +1,7 @@
<%= t('.greeting', recipient: @resource.email) %>
<%= t('.message') %>
<%= t('.instruction') %>
<%= link_to t('.action'), unlock_url(@resource, unlock_token: @token) %>