amatriain/feedbunch

View on GitHub
FeedBunch-app/app/views/devise/mailer/reset_password_instructions.html.erb

Summary

Maintainability
Test Coverage
<% require 'mailer_button_styler' %>

<h1><%= t 'devise.mailer.reset_password_instructions.header' %></h1>

<p><%= t 'devise.mailer.reset_password_instructions.hello', name: @resource.name %></p>

<p><%= t 'devise.mailer.reset_password_instructions.change' %></p>

<p>
  <h2>
    <%=
        link_to t('devise.mailer.reset_password_instructions.change_link'),
                edit_user_password_url(:reset_password_token => @token, locale: I18n.locale),
                style: MailerButtonStyler.button_style
    %>
  </h2>
</p>

<% link_feedbunch = link_to 'FeedBunch.com', root_url(locale: I18n.locale) %>

<p><small><%= t 'devise.mailer.reset_password_instructions.note_1_html',
                name: @resource.email,
                link: link_feedbunch %></small></p>

<p><small><%= t 'devise.mailer.reset_password_instructions.note_2_html', link: link_feedbunch %></small></p>