18F/identity-idp

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

Summary

Maintainability
Test Coverage
<% self.title = t('idv.titles.unavailable') %>

<%= render StatusPageComponent.new(status: :error) do |c| %>

  <% c.with_header { t('idv.titles.unavailable') } %>

  <p>
    <% if decorated_sp_session.sp_name.present? %>
      <%= t('idv.unavailable.idv_explanation.with_sp_html', sp: decorated_sp_session.sp_name) %>
    <% else %>
      <%= t('idv.unavailable.idv_explanation.without_sp') %>
    <% end %>
  </p>

  <p>
    <%= t('idv.unavailable.technical_difficulties') %>
  </p>

  <p class="margin-bottom-5">
    <%= t(
          'idv.unavailable.next_steps_html',
          app_name: APP_NAME,
          status_page_link_html: new_tab_link_to(
            t('idv.unavailable.status_page_link'),
            StatusPage.base_url,
          ),
        ) %>
  </p>

  <% c.with_action_button(
       url: return_to_sp_failure_to_proof_path(step: :unavailable, location: :unavailable),
       big: true,
       wide: true,
     ).with_content(t('idv.unavailable.exit_button', app_name: APP_NAME)) %>

<% end %>