1
0
Fork 0

Generate Devise mailer views

This commit is contained in:
Alex Kotov 2018-12-06 23:24:31 +05:00
parent 64ef47b82a
commit 250f00f715
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
5 changed files with 39 additions and 0 deletions

View file

@ -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>

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

View file

@ -0,0 +1,3 @@
<p><%= translate '.greeting', recipient: @resource.email %></p>
<p><%= translate '.message' %></p>

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

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