18F/identity-idp

View on GitHub
app/views/idv/not_verified/show.html.erb

Summary

Maintainability
Test Coverage
<%= render(
      'idv/shared/error',
      title: t('titles.failure.information_not_verified'),
      heading: t('idv.failure.verify.heading'),
      action: { text: t('idv.failure.verify.exit', app_name: APP_NAME), url: :return_to_sp_failure_to_proof, method: :get },
    ) do %>
    <p>
      <% if decorated_sp_session.sp_name.present? %>
        <%= link_to(
              t('idv.failure.verify.fail_link_html', sp_name: decorated_sp_session.sp_name),
              return_to_sp_failure_to_proof_path(
                step: 'verify_info',
                location: request.params[:action],
              ),
            ) %>
      <% else %>
        <%= link_to(
              t('idv.failure.verify.fail_link_html', sp_name: APP_NAME),
              account_path,
            ) %>
      <% end %>
      <%= t('idv.failure.verify.fail_text') %>
    </p>
<% end %>