amatriain/feedbunch

View on GitHub
FeedBunch-app/app/views/opml_import_mailer/import_finished_error_email.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>

  <head>
    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
  </head>

  <body>
    <h1><%= t 'opml_import_mailer.import_finished_error_email.header_html',
              link: link_to('FeedBunch', @url)%></h1>

    <p>
      <%= t 'opml_import_mailer.import_finished_error_email.body_1', name: @user.name %>
    </p>

    <p>
      <%= t 'opml_import_mailer.import_finished_error_email.body_2_html',
            link: link_to(t('opml_import_mailer.import_finished_error_email.try_again_link'), @url) %>
    </p>

    <% if @user.feeds.count > 0 %>
      <p>
        <%= t 'opml_import_mailer.import_finished_error_email.body_3_html',
              count: @user.feeds.count,
              link: link_to(t('opml_import_mailer.import_finished_error_email.app_link'), @url) %>
      </p>
    <% end %>

    <p><%= t 'opml_import_mailer.import_finished_error_email.body_4' %></p>
  </body>
</html>