Generate Devise mailer views
This commit is contained in:
parent
64ef47b82a
commit
250f00f715
5 changed files with 39 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
<p><%= translate '.greeting', recipient: @email %></p>
|
||||
|
||||
<p><%= translate '.instruction' %></p>
|
||||
|
||||
<p>
|
||||
<%= link_to translate('.action'),
|
||||
confirmation_url(@resource, confirmation_token: @token) %>
|
||||
</p>
|
7
app/views/users/mailer/email_changed.html.erb
Normal file
7
app/views/users/mailer/email_changed.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<p><%= translate '.greeting', recipient: @email %></p>
|
||||
|
||||
<% if @resource.try :unconfirmed_email? %>
|
||||
<p><%= translate '.message', email: @resource.unconfirmed_email %></p>
|
||||
<% else %>
|
||||
<p><%= translate '.message', email: @resource.email %></p>
|
||||
<% end %>
|
3
app/views/users/mailer/password_change.html.erb
Normal file
3
app/views/users/mailer/password_change.html.erb
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p><%= translate '.greeting', recipient: @resource.email %></p>
|
||||
|
||||
<p><%= translate '.message' %></p>
|
11
app/views/users/mailer/reset_password_instructions.html.erb
Normal file
11
app/views/users/mailer/reset_password_instructions.html.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
<p><%= translate '.greeting', recipient: @resource.email %></p>
|
||||
|
||||
<p><%= translate '.instruction' %></p>
|
||||
|
||||
<p>
|
||||
<%= link_to translate('.action'),
|
||||
edit_password_url(@resource, reset_password_token: @token) %>
|
||||
</p>
|
||||
|
||||
<p><%= translate '.instruction_2' %></p>
|
||||
<p><%= translate '.instruction_3' %></p>
|
10
app/views/users/mailer/unlock_instructions.html.erb
Normal file
10
app/views/users/mailer/unlock_instructions.html.erb
Normal file
|
@ -0,0 +1,10 @@
|
|||
<p><%= translate '.greeting', recipient: @resource.email %></p>
|
||||
|
||||
<p><%= translate '.message' %></p>
|
||||
|
||||
<p><%= translate '.instruction' %></p>
|
||||
|
||||
<p>
|
||||
<%= link_to translate('.action'),
|
||||
unlock_url(@resource, unlock_token: @token) %>
|
||||
</p>
|
Reference in a new issue